应用场景: 1.获取当天日期 DateTime.Now为DateTime格式。 DateTime.Now.ToString()转化为日期格式。 转载于:https://www.cnblogs.com/bluewhy/p/5230422.html