c#字符串转换
日期转换为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/
字符转日期:str可以是"05/01/2009 14:57:32.8", "2009-05-01 14:57:32.8" 等
DateTime.TryParse(str, out result);