php strtotime "2 Sunday ago" -
at date/time of error, is, "3/24/2014 7:08am". normally, running "2 sunday ago" on strtotime() result in going 2 sundays. it'll result in, 3/16. however, landing on 3/23, last sunday. also, running "1 sunday ago" result in future date of 3/30 , not 3/23. i'm assuming kind of settings issue don't know how debug. great.
thanks!
$start = date( "y-m-d 11:00:00", strtotime("2 sunday ago")); $end = date( "y-m-d 11:00:00", strtotime("last sunday")); echo $start . ' - ' . $end;
try
$start = date( "y-m-d 11:00:00", strtotime("-2 weeks sunday")); $end = date( "y-m-d 11:00:00", strtotime("-1 weeks sunday")); echo $start . ' - ' . $end;
Comments
Post a Comment