获取当前时间,年,月,日,小时,分,秒,还有星期几
private void Main_F_Load(object sender, EventArgs e)
{
string[] weekdays = {"星期天","星期一","星期二","星期三","星期四","星期五","星期六" };
DateTime dt = DateTime.Now;
int year = dt.Year;
int mouth = dt.Month;
int day = dt.Day;
...
发布:郑德才博客 | 分类:学习之路 | 评论:0 | 浏览: