1var date = moment("2016-10-19");
2var check = date.isValid();
3console.log(check);
1function check() {
2 var now = moment();
3 var hourToCheck = (now.day() !== 0)?17:15;
4 var dateToCheck = now.hour(hourToCheck).minute(30);
5
6 return moment().isAfter(dateToCheck);
7}
8
9console.log(check())