I found a possible bug in PHP date function, if you run this code:
date('Y-m-d', strtotime('first monday 2020-06'));
the output is 2020-06-08 instead of 2020-06-01, is this a bug or i'm doing something wrong?
I found a possible bug in PHP date function, if you run this code:
date('Y-m-d', strtotime('first monday 2020-06'));
the output is 2020-06-08 instead of 2020-06-01, is this a bug or i'm doing something wrong?
You need to put an "of" between first monday and the date
date('Y-m-d', strtotime('first monday of 2020-06 '));
You can read about it at relative Formats