Avatar of Legolas786

asked on 

Display 2nd monday of the month


I use the following code to display the monday date of the current week

Dim monday As DateTime = Today.AddDays((Today.DayOfWeek - DayOfWeek.Monday) * -1)

Open in new window

I was hoping to amend it so it would display the date of the 2nd monday of the month?

So if I was to run it now it would display 13/11/2017
in december it would display 11/12/2017
in january it would display 08/01/2017

and so on

There is no DayofMonth option whuch i thought would work, any help is appreciated thanks
Visual Basic.NET.NET ProgrammingMicrosoft Visual Studio

Avatar of undefined
Last Comment

8/22/2022 - Mon