month mysql
snippet in sql

month mysql

user9151

SELECT MONTH("2017-06-15");

get month from database php

user140

echo 'Day' . date('d', strtotime($row['Date']));
echo 'Month' . date('m', strtotime($row['Date']));
echo 'Year' . date('Y', strtotime($row['Date']));