Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Get the Current Date and Time in PHP

phpCopy<?php
$Object = new DateTime();  
$DateAndTime = $Object->format("d-m-Y h:i:s a");  
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
5+1 =