I want to convert a string in a specific format to a DateTime.
DateTime
My specific string format is \"dd-mm-yyyy\".
dd-mm-yyyy
I cannot do any string
var convertedDate = DateTime.ParseExact("04-05-2010","dd-MM-yyyy",CultureInfo.InvariantCulture);