mysql date in month code example
Example 1: mysql extract month from date
SELECT MONTH(field_name) as month FROM yourtable
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']));
Example 3: month mysql
SELECT MONTH("2017-06-15");