Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dates
Message
De
10/06/2003 01:13:19
 
 
À
09/06/2003 21:59:42
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Re: Dates
Divers
Thread ID:
00798186
Message ID:
00798237
Vues:
29
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform