- date_default_timezone_set: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
date_default_timezone_set('Europe/Prague');
echo date("01.m.Y", strtotime("next month"));
echo "\n";
echo date("d.m.Y", strtotime("first day of next month"));