Hi,
with browser language french i have a string which has date in the format v = 13/01/2010 10:54:00.
when i say Date.parse(v) i get the result as Date.parse(v) 1293897240000 Number
with browser language german i have a string which has date int he format v = 13.01.2010 10:54:00
when i say Date.parse(v) i get the result as Date.parse(v) NaN Number
can you please tell me how to parse date when it is in german language.
at the server side i converted date time to string as follows
if (currentIncidents[x].DateOccurred != null)
{
DateTime dt = (DateTime)currentIncidents[x].DateOccurred;
incident.DateOccurred = dt.AddHours(b.TimeZoneOffset).ToShortDateString() + " " + dt.AddHours(b.TimeZoneOffset).ToLongTimeString();
if (dt.AddHours(b.TimeZoneOffset).IsDaylightSavingTime())
{
incident.DateOccurred = dt.AddHours(b.TimeZoneOffset).AddHours(-1).ToShortDateString() + " " + dt.AddHours(b.TimeZoneOffset).AddHours(-1).ToLongTimeString();
}
}
Thanks