1

I'm thinking about using this plugin http://timeago.yarp.com/ to return date values to time ago.

But it required dates to be in this format ISO 8601: 2008-07-17T09:24:17Z

That's where I'm confused as my dates are stored in a mysql database as a timestamp like this 2011-12-23 12:51:09

Could anybody help me distinguish the difference between the two timestamp types because the jQuery plugin wont work with my current timestamp formats (2011-12-23 12:51:09)

Frank
  • 1,844
  • 8
  • 29
  • 44

1 Answers1

1

if you are using php to query your mysql you can use this:

How to display a date as iso 8601 format with PHP

or if you want to handle it in javascript, take a look at here:

http://webcloud.se/log/JavaScript-and-ISO-8601/

Community
  • 1
  • 1
gok
  • 1,137
  • 1
  • 9
  • 30