147
rated 0 times
[
151]
[
4]
/ answers: 1 / hits: 23179
/ 12 Years ago, tue, october 9, 2012, 12:00:00
How to check if two dates not on the same day. I came up with this solution but maybe there is a better way to do this:
var actualDate = new Date();
var isNotToday = dateToCheck.getDay() !== actualDate.getDay() || dateToCheck < actualDate - 24 * 60 * 60 * 1000;
More From » date