Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting string to date
Message
From
17/05/2006 20:49:54
 
 
To
17/05/2006 20:44:19
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01121705
Message ID:
01123073
Views:
15
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform