Hi, DateTime.Parse is not working. I have written follwing code. What I have tried: DateTime.Parse("29/12/2016", "en"); same code is working for other culture. only for english its giving follwing error. String was not recognized as a valid DateTime.</pre>
using System; using System.Globalization; public class Program { public static void Main() { DateTime dt = DateTime.Parse("29/12/2016", new CultureInfo("en-GB")); Console.WriteLine(dt); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)