DateTime date = DateTime.Parse("2011-05-04 14:33:41"); //4 m开发者_JS百科ay 2011
How do I convert this date to "20110504 14:33:41"
?
Format it like this
string formattedDate = date.ToString("yyyyMMdd HH:mm:ss");
DateTime date = DateTime.Parse("2011-05-04 14:33:41"); //4 m开发者_JS百科ay 2011
How do I convert this date to "20110504 14:33:41"
?
Format it like this
string formattedDate = date.ToString("yyyyMMdd HH:mm:ss");
精彩评论