date variable in php code example
Example 1: php get current year
$currentYear=date("Y");//2019
Example 2: php timestamp to date
<?php
echo date('m/d/Y H:i:s', 1541843467);
?>
$currentYear=date("Y");//2019
<?php
echo date('m/d/Y H:i:s', 1541843467);
?>