sql:
SELECT datepart(weekday,getdate());
select (datepart(weekday , convert(datetime,'2009-05-01',121))+@@datefirst-1)%7
c#
DateTime dt;
dt.DayOfWeek(日期)
sql:
SELECT datepart(weekday,getdate());
select (datepart(weekday , convert(datetime,'2009-05-01',121))+@@datefirst-1)%7
c#
DateTime dt;
dt.DayOfWeek(日期)