How do I convert a date string, in the general form of "ccyymmdd" in to a DateTime object in C#?
For example, how would I convert "20100715" in to a DateTime object.
Please - No RTFM links to Microsoft Tech Docs.
Many Thanks...
using System.Globalization;
DateTime.ParseExact("20100715", "yyyyMMdd", 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