Lets say I have a date-time object 2015-12-31T12:59
. Is there a way in JavaScript to find the difference between current date-time and the above date-time object in seconds? Basically, is there a way to find out the time in seconds from this very moment till the date-time specified by a future date-time object?
I did some digging but couldn't find anything that could be of any use for me in this case.