when I tape this on the vscode :
<?php
$ok= new Datetime();
var_dump($ok);
i get the result:
object(DateTime)#1 (3) { ["date"]=> string(26) "2021-11-04 19:40:18.818587" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
how I must di to just show the "date" ?
best regards.