jquery function to convert datetime, split date time "2010-10-18 10:06" to return "18/10/2010" and

Posted by Cesar Lopez on Stack Overflow See other posts from Stack Overflow or by Cesar Lopez
Published on 2010-03-08T15:28:54Z Indexed on 2010/03/08 15:36 UTC
Read the original article Hit count: 444

Filed under:
|
|

Hi I was wondering if there is any jquery function around which can take this dateTime "2010-10-18 10:06" and convert and split it returning "2010/10/18" and "10:06".

It would be also nice if the same function could either receive "2010-10-18 10:06" or "2010-10-18" only and return as mentioned above, or different formats besides "2010/10/18" like 18-10-2010" or and 18th of October 2010, giving the option but not that important, just curious about jQuery power dealing with dates.

Thanks.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about datetime