DateTime date = DateTime.Parse("2011-05-04 14:33:41"); //4 may 2011
How do I convert this date to "20110504 14:33:41"
?
Format it like this
string formattedDate = date.ToString("yyyyMMdd HH:mm:ss");
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