mardi 18 février 2020

How to get every nth Monday, Tuesday etc. of every month in this year laravel/php after a certain date?

For example if the function gets 2020.02.18 then it's the 3rd Tuesday of February, so the output should be an array of dates: [3rd Tuesday of March if exists, 3rd Tuesday of April if exists, ..., 3rd Tuesday of December 2020 if exists]. For 2020.03.27 its the 5th Sunday of March so the output should be: [5th Sunday of April if exists, 5th Sunday of May if exists, ..., 5th Sunday of December 2020 if exists]



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire