|
-
Jul 4th, 2006, 11:09 AM
#1
Thread Starter
Lively Member
Problem with ParseExact
I get an error if I try to convert string to datetime:
dim dtDateTime as datetime
dtDateTime = DateTime.ParseExact("05/07/2006 12:00", "MM/dd/yyyy HH:mm", Nothing)
I tried also with
dim dtDateTime as datetime
dtDateTime = DateTime.ParseExact("05/07/2006 12:00", "MM/dd/yyyy HH:mm", System.Globalization.DateTimeFormatInfo.InvariantInfo)
but I get the same error.
Any suggestions?
Thank
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|