takel on 03/04/11
Last Edited at 03/04/11 09:07pm
function week_range($date) { $ts = strtotime($date); $start = (date('w', $ts) == 0) ? $ts : strtotime('last monday', $ts); return array(date('d.m.Y', $start), date('d.m.Y', strtotime('next sunday', $start)));}
Report this snippet Tweet
Comment:
You need to login to post a comment.