php date noiw code example
Example 1: php get current year
$currentYear=date("Y");//2019
Example 2: long day in php
$mydate = '2016-01-01';
echo date('l, F jS, Y', strtotime($mydate));
# Friday, January 1st, 2016
$currentYear=date("Y");//2019
$mydate = '2016-01-01';
echo date('l, F jS, Y', strtotime($mydate));
# Friday, January 1st, 2016