Weird situation with FormCollection

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
Howdy,

My site is hosted in a different timezone from mine. The date format is mm-dd-yyyy.

But I receive httppost message in which my FormCollection parameter receives dates in the format dd-mm-yyyy.

So I keep getting an date parse exception and not even get into the method (empty method by the way!). So I suppose that this error is caused because the time zone.

Is there any chance of this happen?

My code where I get error:

public ActionResult MyAction(FormCollection model)
{
// empty
}

Thanks!
12 years ago
Solved!

That was just a cache issue.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.