how to get the current time wit full year in php code example
Example 1: php get current time and date
date("Y-n-j G:i:s");
//-->2020-10-29 23:27:15
Example 2: how to get the current year in php
Get the current year using PHP:
<?php
echo date("Y");
?>