<?php $currentDate = new DateTime(); $currentDay = $currentDate->format("j"); // Number of days in the current month $daysInMonth = $currentDate->format("t"); var_dump($currentDay); var_dump($daysInMonth);
You have javascript disabled. You will not be able to edit any code.