I'm trying to write a countdown and it should expires on a MySQL datetime value.
Using JavaScript I can get today's time using new Date()).getTime() but then how can I get the time difference from JS date and the MySQL datetime, assuming MySQL datetime value is in the future