Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Convert DateTime to String in PHP

phpCopy$dateFormat = new DateTime(); // this will return current date
echo $stringDate = $date->format(DATE_ATOM);

//output: 2020-03-08T12:54:56+01:00
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #Convert #DateTime #String #PHP
ADD COMMENT
Topic
Name
5+6 =