- date: documentation ( source)
<?php
$now = date("Y-m-d");
$from = new DateTime( $now );
echo $from;
$from->modify('first day of this month');
$from = $from->format("Y-m-d");
$to = new DateTime( $now );
$to->modify('first day of next month');
$from = $to->format("Y-m-d");
echo $from;
echo $to;