日期转换为string:
System.DateTime.Now.ToString("yyyyMMdd");
//20070424
System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss:ffff");
//2007-04-24 15:52:19
referto
https://www.bbsmax.com/A/n2d9YRNBdD/
2021-09-30 07:42:51
日期转换为string:
System.DateTime.Now.ToString("yyyyMMdd");
//20070424
System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss:ffff");
//2007-04-24 15:52:19
referto
https://www.bbsmax.com/A/n2d9YRNBdD/