php year date code example
Example 1: php get year
<?php echo date("Y"); ?>
Example 2: php grab year from date
$year = date("y",strtotime($mydate));
Example 3: php code to display current date and time in different formats
echo date('Y.m.d H:i:s');
Example 4: show date php by letters
check here link: http://www.eltcalendar.com/stuff/datemysqlphp.html