Date.dateOnly
$date.dateOnly() -> Date
Description
Get the start of the date object (time at 00:00:00).
$dateTime = Date.now() //= 《 Date 2021-07-23 15:43:07 +0000 》 $date = $dateTime.dateOnly() //= 《 Date 2021-07-23 00:00:00 +0000 》 // ^^^^^^^^
Get the start of the date object (time at 00:00:00).
$dateTime = Date.now() //= 《 Date 2021-07-23 15:43:07 +0000 》 $date = $dateTime.dateOnly() //= 《 Date 2021-07-23 00:00:00 +0000 》 // ^^^^^^^^