Javascript check if it has passed midnight since a certain time

Posted by Jonah on Stack Overflow See other posts from Stack Overflow or by Jonah
Published on 2010-04-16T04:47:49Z Indexed on 2010/04/16 4:53 UTC
Read the original article Hit count: 377

Filed under:
|
|

I need to create a javascript function that checks if it has been a day since timeX (an instance of Date). I do NOT mean whether is has been 24 hours since timeX, but instead whether it has passed a midnight since timeX.

I am a PHP expert, not a JavaScript one, so I was wondering if anyone here had any quick answers. Thanks!

function(dateLast, dateNow) {...}

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about date