Answers for "how to get the current time wit full year in php"

PHP
0

how to get the current year in php

Get the current year using PHP:
  
<?php 
	echo date("Y"); 
?>
Posted by: Guest on October-19-2020
2

php get current time and date

date("Y-n-j G:i:s");
//-->2020-10-29 23:27:15
Posted by: Guest on October-29-2020

Code answers related to "how to get the current time wit full year in php"

Browse Popular Code Answers by Language