C#中获取系统当前日期?

比如说今天4月2号,是20180409我只要09
2025-05-14 11:10:07
推荐回答(2个)
回答1:

好像是这个 DateTime.Now.Day或DateTime.Now.Date
试一下吧。不行你就截取字符串啊。

回答2:

System.DateTime currentTime=new System.DateTime();