Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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.";
?>
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #Get #Current #Date #Time #PHP
ADD COMMENT
Topic
Name
2+5 =