Answers for "new datetime now php"

PHP
10

date now php

date('Y-m-d H:i:s')
Posted by: Guest on July-11-2020
1

date now php

date("Y-m-d H:i:s");
Posted by: Guest on October-21-2020
3

datetime php

$dateTime = new \DateTime();
$dateTime->format('Y-m-d H:i:s');
Posted by: Guest on June-15-2020
0

date now php

echo date('c');

// 2015-07-27T00:00:00+02:00
Posted by: Guest on October-21-2020

Browse Popular Code Answers by Language