php date get year code example
Example 1: get current year php
<?php echo date("Y"); ?>
Example 2: php get current year
$currentYear=date("Y");//2019
Example 3: php timestamp format
date("d.m.Y", strtotime($mysqltimestamp)
<?php echo date("Y"); ?>
$currentYear=date("Y");//2019
date("d.m.Y", strtotime($mysqltimestamp)