I want to popup a message when user click on submit button between the date of 2012-01-22, 00:00 to 2012-01-25, 23:59. I write the code as below, but it won't works. Could someone suggest how to convert the date to integer so that I can check if today date is greater than x and less than x, then popup the message?
Thanks
function holiday_alert_msg() {
var today_date = new Date();
if (today_date > 201201220000 && today_date < 201201252359) {
alert("Today is holiday");
}
}
$('#submit').bind('click', function() {
holiday_alert_msg();
});