get current month php

97

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']));

get month name php -

echo date("F", strtotime(date("Y") ."-". $i ."-01"))

Comments

Submit
0 Comments