Re: 'String was not recognized as a valid DateTime
- From: zislam@xxxxxxxxx (Pial)
- Date: 21 Apr 2005 06:42:12 -0700
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
.
- Follow-Ups:
- Re: 'String was not recognized as a valid DateTime
- From: Maqsood Ahmed
- Re: 'String was not recognized as a valid DateTime
- From: Maqsood Ahmed
- Re: 'String was not recognized as a valid DateTime
- References:
- 'String was not recognized as a valid DateTime
- From: Pial
- Re: 'String was not recognized as a valid DateTime
- From: singh_angrez@xxxxxxxxxxxxxx
- 'String was not recognized as a valid DateTime
- Prev by Date: Re: How do you set up http://localhost?
- Next by Date: Re: How do you set up http://localhost?
- Previous by thread: Re: 'String was not recognized as a valid DateTime
- Next by thread: Re: 'String was not recognized as a valid DateTime
- Index(es):
Relevant Pages
|
Loading