Search code examples
javascriptdatedate-manipulation

javascript date manipulation


I have a string

2010-08-02 12:13:06.0

and need to get something like

Fri Aug 6 2010

out of it (the input does not map to the output for the values I gave, just examples)

I fear Im going to have to do some string manipulation to get what I want; the js Date object does not seem to have methods capable of parsing the input string.

Is this correct?

We are using jquery, but cant find anything in that library that would help...


Solution

  • Everything has been invented before us: http://www.mattkruse.com/javascript/date/