$date=date('d-m-Y');
echo date('Y-m-d',strtotime("last monday", strtotime('tomorrow', strtotime($date))));
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:
Post a Comment