@ 2017-06-02T12:43:44Z <?php
//echo date('-m-d', strtotime('+ 15 days'));
$d = new DateTime('2010-01-19');
$d->modify('first day of this month');
//cho date("Y-m-d",$d);
echo print_r($d,1);
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 5.6.38 , 7.0.0 - 7.0.33 , 7.1.0 - 7.1.33 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.31 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.12 , 8.0.14 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.7 DateTime Object
(
[date] => 2010-01-01 00:00:00.000000
[timezone_type] => 3
[timezone] => Europe/Amsterdam
)
Output for 7.3.32 - 7.3.33 , 8.0.13 DateTime Object
(
[date] => 2010-01-01 00:00:00.000000
[timezone_type] => 3
[timezone] => UTC
)
preferences:dark mode live preview
186.09 ms | 402 KiB | 246 Q