Answer the question
In order to leave comments, you need to log in
How to determine the date if you know the year, month, day of the week?
How to determine the specific date of the month, knowing the month, year and day of the week.
For example: 2016, August, Monday.
How to get the date of the first Monday in August?
Answer the question
In order to leave comments, you need to log in
echo (new DateTime($year . '-' . $month))
->modify('first ' . $day ' . of this month') // first monday of this month
->format(\DateTime::ATOM);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question