Answers for "php date year now"

PHP
8

php get current year

// get current year using php
<?php echo date("Y"); ?>
Posted by: Guest on August-03-2020
1

date now php

date("Y-m-d H:i:s");
Posted by: Guest on October-21-2020

Browse Popular Code Answers by Language