How to convert string
C#
5
Posts
3
Posters
0
Views
1
Watching
-
Hi I have a string in format "21.05.2004" pleas tell me how to convert it to DataTime format.All time i get InvalidDataException.Pleas help me if you can.
when i want to read something good just seat and type it
DateTime.Parse ??? Make sure the culture is set correctly for you date format also.
only two letters away from being an asset
-
DateTime.Parse ??? Make sure the culture is set correctly for you date format also.
only two letters away from being an asset
-
System.Globalization.CultureInfo culture = new System.Globaliztion.CultureInfo("ru-RU"); // Russian DateTime dt = ConvertTo.DateTime("21.05.2004",culture); msdn site