Web Analytics

PHP idate() Function

Date/Time FunctionPHP 5+

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

Related Functions