TryParseExact: Use fr-FR culture.
'The format, "G", is short date and long time
Imports System
Imports System.Globalization
Class Sample
Public Shared Sub Main()
Dim result As Boolean
Dim datetimeVal As DateTime
Dim ci As CultureInfo
ci = New CultureInfo("fr-FR")
result = DateTime.TryParseExact("04/07/2010 12:34:56", "G", ci, DateTimeStyles.None, datetimeVal)
Console.WriteLine(datetimeVal.ToString())
End Sub
End Class
Related examples in the same category