i have code in php
date_default_timezone_set('Asia/Jakarta');
$dt = new DateTime('first Saturday of this month');
$periode1 = $dt->format('Y-m-d');
$periode11 = date( "Y-m-d", strtotime( "$periode1 +6 day" ) );
$tgl_delivered = "2015-07-10";
if (($tgl_delivered >= $periode1) && ($tgl_delivered <= $periode11)){
$tanggal_periode="$periode1 | $periode11";
}
echo "$tanggal_periode";
and the result is "2015-08-08 | 2015-08-14";
however i want this result be "2015-07-04 | 2015-07-10" whats wrong with my code??