Web Analytics

PHP easter_date() Function

Calendar FunctionPHP 4+

The easter_date() function returns the Unix timestamp for local midnight on Easter of a given year.

Syntax

easter_date(?int $year = null, int $mode = CAL_EASTER_DEFAULT): int

Try It Online

Output
Click Run to execute your code

Related Functions

  • easter_days() - Get number of days after March 21 on which Easter falls for a given year