select month in date php code example
Example 1: datetime get month php
$dateTime = new DateTime();
$month = $dateTime->format('m');
Example 2: get month from database php
echo 'Day' . date('d', strtotime($row['Date']));
echo 'Month' . date('m', strtotime($row['Date']));
echo 'Year' . date('Y', strtotime($row['Date']));