<?php $date = new \DateTime(); $first = clone $date->modify('first day of this month'); $last = clone $date->modify('last day of this month'); echo $first->format('y-m-d') . PHP_EOL; echo $last->format('y-m-d') . PHP_EOL;
You have javascript disabled. You will not be able to edit any code.