tags:

views:

47

answers:

1

how to get the date of first monday of the current year using php functions

example 04-01-2010

+6  A: 

Just change the format as wanted :)

<php
echo date("d m y", strtotime("first monday of 2010"));
?>
Psytronic
Your example didn't work for me, but with this slight modification, it did: `date("d m y", strtotime("monday", mktime(0, 0, 0, 1, 1)))`
nikc
Possibly some different setting, but worked for me :)
Psytronic