System.DateTime.Now 24小时制。

it2026-09-21  20

this.Label6.Text = "当前时间:" + System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");    2014-11-29 15:03:04

 

this.Label6.Text = "当前时间:" + System.DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss");    2014-11-29 03:03:04

转载于:https://www.cnblogs.com/ZkbFighting/p/10813418.html

最新回复(0)