Board index » javascript » JavaScript date and time parsing

JavaScript date and time parsing

2006-04-07 10:10:13 AM
Hi,
I have the following Date and Time format (taken from C#. NET's DataSet
and sent to clients browser using Ajax).
Thu Apr 6 20:43:59 EDT 2006
What's the easiest way to parse this? (change it to a javascript date)
Thanks
Maz.
-
 

Re:JavaScript date and time parsing

maflatoun@gmail.com wrote:
Quote
I have the following Date and Time format (taken from C#. NET's DataSet
and sent to clients browser using Ajax).

Thu Apr 6 20:43:59 EDT 2006

What's the easiest way to parse this? (change it to a javascript date)
var d = new Date("Thu Apr 6 20:43:59 EDT 2006");
PointedEars
-