easter_date(): the Unix timestamp for midnight on Easter Sunday for a specified year
$time_stamp=easter_date(2025);
echo "Easter date is :".date('m-d-Y',$time_stamp);
The output is here
Easter date is :04-20-2025
If year is not given the easter date of current year is returned.
$time_stamp=easter_date();
echo "Easter date is :".date('m-d-Y',$time_stamp)
Output is here
Easter date is :03-31-2024
We can get
unix timestamp of Easter day corresponding to midnight on Easter of the given year by using
easter_date() function.
Here is the syntax
easter_date(YYYY);
Here we are entering year in YYYY format , like 1998. The output is unix time stamp of midnight of easter day of the year.
Information about available Calendars →
← Calendar Functions
← Subscribe to our YouTube Channel here
This article is written by plus2net.com team.
https://www.plus2net.com
plus2net.com