PHP easter_date Function

PHP easter_date Function


Definition :

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

Tip: The date of Easter Day is defined as the Sunday after the first full moon which falls on or after the Spring Equinox (21st March).

Syntax

    easter_date(year);

Parameter Values
Parameter Description
year Optional. Specifies a year between 1970 and 2037. Default is the current year, local time

 Example : following example print easter date for different years

Output : 

1617474600
Apr-03-2021
Apr-06-1985
Mar-22-2008
Apr-19-2014