[ create a new paste ] login | about

Link: http://codepad.org/QlYgqeKJ    [ raw code | output | fork ]

PHP, pasted on Mar 24:
1
2
3
4
5
<?php
$start = date( "Y-m-d 11:00:00", strtotime("-2 sunday"));
$end = date( "Y-m-d 11:00:00", strtotime("last sunday"));
echo $start . ' - ' . $end;
?>


Output:
1
2014-03-16 11:00:00 - 2014-03-23 11:00:00


Create a new paste based on this one


Comments: