Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anyone know how to convert string to datetime in vb.net
Message
From
29/03/2011 13:13:28
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows XP
Database:
Jet/Access Engine
Miscellaneous
Thread ID:
01505223
Message ID:
01505387
Views:
44
Thank for your reply me ,but i have some problem.........
If the user region setting is Date format (DD/MM/YY) then , eg. (13/02/11)

but if the user region setting is Date format (MM/DD/YY) eg. (13/02/11), will error in isdate function, so how can i do ,
in isdate function convert the Maskedate.Text to do checking, base user region setting date format?
Dim dateEntered As DateTime
        DateTime.TryParse(Maskedate.Text, dateEntered)

 If IsDate(Maskedate.Text) = False Then
            MsgBox("Error available date !", 48, "Warning")
            Maskedate.Focus()
            check = False
            Exit Sub
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform