日期:2014-05-18  浏览次数:20451 次

asp.net 关于时间相差值问题,请大家看一下:
asp.net--> C#
DateTime   d   =   new   DateTime();
Response.Write(d.Day   +   " <br> ");怎么返回1啊?今天是19号啊,?  
Response.Write(d.DayOfWeek   +   " <br> ");输出Monday.今天是星期二啊?


------解决方案--------------------
应该这样
===
DateTime d = DateTime.Now;
Response.Write(d.Day + " <br> ");
Response.Write(d.DayOfWeek + " <br> ");
------解决方案--------------------
来迟了 接分