$dateToday = date("Y-m-d"); // 2020-07-31 (iso format can be used in MySQL)
$dateTimeNow = date("Y-m-d H:i:s"); // 2020-07-31 08:35:18 (the MySQL DATETIME format)
I hope this is useful to you.
If you found it useful, perhaps have a listen to my music at Projektor Digital https://app.projektordigital.com/player/index.php?playlist=39&uid=7