I have dates stored in MongoDB using Date(), MongoDB uses UTC it\'s date type, and as a string looks like Mon, 02 Apr 2012 20:16:31 GMT.
Mon, 02 Apr 2012 20:16:31 GMT
I want to get t
(end_date.getTime() - current_date.getTime()) / 1000
getSeconds will return only seonds, but not minutes, hours, etc.
getSeconds