asp.net 判断今天是是周末还是月末还是普通日子
因为要做一个活动的页面,根据时间调用不同的内容,
具体是要判断今天是普通日子那么调用平时的活动内容,
如果是周末那就调用周末的内容,
如果是月末就调用月末的内容。------解决方案--------------------if (date.DayOfWeek == DayOfWeek.Saturday
------解决方案-------------------- date.DayOfWeek == DayOfWeek.Sunday)//周末
if (date.AddDays(1).Day==1)//月末
------解决方案--------------------正解!
------解决方案--------------------Refer these:
http://www.cnblogs.com/insus/archive/2012/06/07/2541079.html
http://www.cnblogs.com/insus/archive/2012/06/07/2541096.html
http://www.cnblogs.com/insus/archive/2012/06/07/2541035.html
http://www.cnblogs.com/insus/archive/2012/06/07/2541029.html