PHP idate() Function
The idate() function formats a local time/date as an
integer. It accepts a format character and returns the corresponding integer
value.
Syntax
idate(string $format, ?int $timestamp = null): int|false
Try It Online
Output
Click Run to execute your code
Enjoying these tutorials?