The normal data conversion depends on system language and/or date format.
you use this brief code if you do not want to manage the culture.

yourDateTime="01/12/17 10:30"
Dim dt As Date = Now
Date.TryParseExact(yourDateTime, "dd/MM/yy HH:mm", CultureInfo.InvariantCulture, Globalization.DateTimeStyles.None, dt)
'dt will contain your date with local culture

Advertisements