Thanks @Hartti and @Daniel. I used diff() and could get the result.
I changed the date format and removed the Standard Timing information and I was able to get the results. Thanks a lot once again :) On Thursday, February 26, 2015 at 3:56:41 AM UTC+5:30, Satish B wrote: > > I'm using node.js and npm moment.js > > I've 2 dates in the following format: > Thu Feb 25 2015 02:57:08 GMT+0530 (India Standard Time) > Thu Feb 26 2015 03:34:29 GMT+0530 (India Standard Time) > > I need to check if there is at least 30 min difference between the 2 > timigns. > > Moment.js http://momentjs.com/ > > *Thanks ..* > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/30d34312-0ac9-4a7e-a99e-ca0b838248c9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
