Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
101
reputation
1

Michael Blankenship

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);
  • Member for 3 years, 10 months
  • 4 profile views
  • Last seen Oct 22 '15 at 16:10