Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

pasar datetime a string php

$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: #pasar #datetime #string #php
ADD COMMENT
Topic
Name
4+8 =