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

Комментариев нет: