8/28/13

work notes:

problem: how do we get a timestamp for the most recent sunday at midnight?
solution:
var x = new Date(new Date().toDateString())
var lastSundayAtMight = x.getTime() - (1000 * 60 * 60 * 24 * x.getDay())

...

No comments:

Post a Comment