easter_date(): the Unix timestamp for midnight on Easter Sunday for a specified year

Get the Easter Sunday timestamp

easter_date() returns a Unix timestamp for Easter Sunday for a supported year.

date_default_timezone_set('UTC');
$timestamp = easter_date(2027);
echo date('Y-m-d', $timestamp);

Current example first; the detailed examples and demos below are retained for additional learning and comparison.

\=easter_date(2025);
echo "Easter date is :".date('m-d-Y',\);
The output is here
Easter date is :04-20-2025
If year is not given the easter date of current year is returned.
\1745132400=easter_date();
echo "Easter date is :".date('m-d-Y',\1745132400)
Output is here
Easter date is :04-05-2026
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



plus2net.com











PHP video Tutorials
✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer