2nd and 4th Saturday of the month2nd Saturday for the Month:01 of Year:2021 :09-01-2021 4th Saturday for the Month:01 of Year:2021 :23-01-2021 1st monday for the Month:01 of Year:2021 :28-12-2020 3rd wednesday for the Month:01 of Year:2021 :13-01-2021 By default, current month is used , you can change the below code to any month and year.
To display 4th Satruday, add this code at the end.
To display 1st Monday , add this code at the end.
To display 3rd Wednesday , add this code at the end.
Formula for any day any weekday_number: For Sunday use 1, Monday=2, ... and for Saturday use 7
By using above formula we can get the number and same can be used for getting the date of any week with weekday of the month.
To get 3rd wednesday ( day_number = 4 ) Week_number=3
Try for other days of the week.
This article is written by plus2net.com team.
![]() | ||||||||
| ||||||||