moment check valid date
var date = moment("2016-10-19");
var check = date.isValid();
console.log(check);
moment check valid date
var date = moment("2016-10-19");
var check = date.isValid();
console.log(check);
moment check greater than current time
function check() {
var now = moment();
var hourToCheck = (now.day() !== 0)?17:15;
var dateToCheck = now.hour(hourToCheck).minute(30);
return moment().isAfter(dateToCheck);
}
console.log(check())
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us