Hi i need to make a countdown script using dates in this format (Y-m-d H:m:s), so i retrieve current_datetime and expire_datetime in that format and i need to use them inside some js or js plugin to show up the countdown between these dates.
Does someone knows lightweight js or jquery plugins that accepts the date format showed above?
This is pretty what i need http://keith-wood.name/countdown.html, but it doesn’t allows Y-m-d H:m:s format
NB: i need to bind the countdown event to multiple elements on page.
Thanks!.
You can use the one you posted a link to, just convert your date string into a date object. This can easily be done by breaking the string down into components using JavasScript’s
splitmethod: