mg娱乐电子4355_mg娱乐电子游戏平台
做最好的网站

c# 自定义日期的时分秒

时间:2019-11-22 09:13来源:计算机编程
1 DateTime beginTime = DateTime.Now.Date;2 Console.WriteLine(beginTime);3 DateTime endTime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 23, 59, 59);4 Console.WriteLine(endTime);5 DateTime customTime = new DateTime
1 DateTime beginTime = DateTime.Now.Date;
2 Console.WriteLine(beginTime);
3 DateTime endTime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 23, 59, 59);
4 Console.WriteLine(endTime);
5 DateTime customTime = new DateTime(2018,09,03,14,30,20);
6 Console.WriteLine(customTime);

图片 1

编辑:计算机编程 本文来源:c# 自定义日期的时分秒

关键词: