Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting string to date
Message
De
17/05/2006 20:49:54
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01121705
Message ID:
01123073
Vues:
17
Luis,

No. I don't think there is such a command. I meant this:
if(DateTime.Parse(DtpCCValidUpto.text)<Now()) Then
~~Bonnie



>do you mean instead this ?
>
>if(CDate.Parse(DtpCCValidUpto.text)<Now()) Then
>
>instead of the following wrong line?
>
>
>if(CDate(DtpCCValidUpto.text)<Now()) Then
>   MessageBox.Show ("Invalid date.")
>   DtpCCValidUpto.Focus()
>   Return
>endif
>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform