Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var checkDate = new Date();
- var todayDate = new Date();
- todayDate.setHours(0,0,0,0);
- // Erase hour from the object
- checkDate.getDate();
- checkDate.setHours(0,0,0,0);
- // Check if it's today's date
- if(checkDate.getTime() == todayDate.getTime())
- {
Add Comment
Please, Sign In to add comment