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

Michael Blankenship

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

Stats

97
EtPoint
26
Vote count
0
questions
5
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);