Answers for "how to get date using php"

PHP
-4

php get date

date("Y-m-d h:i:sa")
Posted by: Guest on December-03-2020
0

Get the Current Date and Time in PHP

phpCopy<?php
$DateAndTime = date('m-d-Y h:i:s a', time());  
echo "The current date and time are $DateAndTime.";
?>
Posted by: Guest on April-23-2021

Code answers related to "how to get date using php"

Browse Popular Code Answers by Language