c# 自定义日期的时分秒
程序员文章站
2022-08-09 10:19:15
1 DateTime beginTime = DateTime.Now.Date; 2 Console.WriteLine(beginTime); 3 DateTime endTime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, Dat ......
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);
上一篇: 29_Java_数据库_第29天(JDBC、DBUtils)_讲义
下一篇: C#多线程编程笔记