I want to convert a string which contains the date in yyyyMMdd
format to mm-dd-yyyy
DateTime format. How do I get it?
var dateString = "20050802"; var date = myDate = DateTime.ParseExact(dateString, "yyyyMMdd", System.Globalization.CultureInfo.InvariantCulture);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With