//定时器定时刷新时间(记得开启定时器)
private void timerclock_Tick(object sender, EventArgs e)
{
timerclock.Interval = 1000; //1000代表1秒
//这里用的label框体
time1.Text = DateTime.Now.ToString("HH:mm:ss");
time2.Text = DateTime.Now.ToString("yyyy/MM/dd");
}
DateTime.Now.ToString(“yyyy-MM-dd HH:mm:ss.fff”)