March 17, 2011

Get Monday of week in PHP

$date=date('d-m-Y');
echo date('Y-m-d',strtotime("last monday", strtotime('tomorrow', strtotime($date))));

By Shakti Singh and zerkms on «how do i get the 1st day of week from current date..» @ Stackoverflow

No comments: