c#如何查询某一年的某一天是星期几?

把代码给写出哦!谢谢喽!
2024-12-04 00:05:27
推荐回答(2个)
回答1:

DateTime.Parse("2011/1/3").DayOfWeek;

Sunday = 0,
Monday = 1,
Tuesday = 2,
Wednesday = 3,
Thursday = 4,
Friday = 5,
Saturday = 6,

回答2:

DateTime.DayOfWeek