FormatException on date

Mar 28, 2012 at 5:36 AM

FormatException on date received, dmy instead of mdy (month-day-year)...

occurs in line 297 of TrendsRequestProcessor.cs:

Date = DateTime.Parse(parameters["Date"], CultureInfo.InvariantCulture);

"date" key has an string value of "26/03/2012 00:00:00" (dmy) and want to be parsed as invariant (mdy) and then appears the exception.

Exception Message: "String was not recognized as a valid DateTime."

Mar 28, 2012 at 7:03 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.