What I need
I have a specific list of dates. I want to get the first Monday of every time.
for example: suppose datetimes are
2013-07-05 2013-08-05, 2013-09-13 etc.
I want to get the first Monday of all these datetimes, so the result leads to
2013-07-01, 2013-08-05, 2013-09-02 respectively
I am actually stuck with this using stftime .
strftime("%d/%m/%Y", strtotime("first Monday of July 2012"));
source share