C# How can I check if today is the first Monday of the month?

前端 未结 5 1047
太阳男子
太阳男子 2021-01-01 12:04

How can I check if today is the first Monday of the month?

The code below gives me the last day of the month, how should I modify this?

DateTime toda         


        
5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-01 12:26

    I don't know c#, but in any language, it's

    if Today is monday, 
    and Today's Date is 7 or less.
    

提交回复
热议问题