c# 自定义日期的时分秒
程序员文章站
2022-05-03 13:53:46
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);
上一篇: TreeView 节点拖拽