Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dates
Message
From
10/06/2003 01:13:19
 
 
To
09/06/2003 21:59:42
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
ASP.NET
Category:
Other
Title:
Re: Dates
Miscellaneous
Thread ID:
00798186
Message ID:
00798237
Views:
28
Jim,

You could put DateTime.Parse(MyDateString) in a try/catch ...

~~Bonnie

>Hello,
>
> I have a webform that has a date field on it. The date field is optional for the user to enter. I need to know the best way to handle when the date field is left blank. I am getting an error message that says it can't cast from a string to a date.
>
>Can anyone help?
>
>Thanks
>
>Jim
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform