Re: 'String was not recognized as a valid DateTime



Hi Angrez:

I check it with your code but the same error message, but one thing
when i change the format "21/04/2005" means(dd/mm/yyyy) it is working.
Is that means my machine system date is setting is dd/mm/yyyy....?
then how do i know that which format of date could use by the client!

Thanks in advance
Zahir

"singh_angrez@xxxxxxxxxxxxxx" <singh_angrez@xxxxxxxxxxxxxx> wrote in message news:<1114057950.922691.94280@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>...
> Hi,
>
> Just check what is the value you are getting from
> Request.Form["openDate"].
> I just works like this.
>
> string date = "04/21/2005"; // in the format mm/dd/yyyy;
> DateTime temp = DateTime.Parse(date);
>
> //The above code runs without any exception.
>
> Just check what the string are you getting using
> Request.Form["open_date"];
>
> Regards,
> angrez
.



Relevant Pages


Loading