Date

<?php
$time = date("Ymd H:i:s");
$year = date("Y");
echo ($time);
echo ($year);
?>

source

Leave a Reply