天天看点

asp.net 显示最后登录时间源代码

取当前系统时间即可

System.DateTime.Now

用函数就可以了

当前时间是datetime.now.tostring("yyyy-mm-dd ")

DateTime.Parse(DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString() + "1").AddMonths(1).AddDays(-1).ToShortDateString();//最后一天

DateTime.Now.ToString() 字符串

DateTime.Now 日期类型