Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 
avatar of Michael Blankenship

Michael Blankenship

Michael Blankenship has asked 0 questions and find answers to 6 problems.

Stats

110
EtPoint
28
Vote count
0
questions
6
answers

About

function jam(day) {return day == Date();}
var today = new Date();
var tomorrow = new Date(+new Date() + 86400000);
var yesterday = new Date(+new Date() - 86400000);
var rule = jam(tomorrow) && jam(yesterday) && !jam(today);