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
:wave:
