At 6:51 PM -0500 11/15/08, Ron Piggott wrote:
Is there a way to modify this code so it will always be the *next*
Christmas and Easter?
<?php
$todays_date_seasonal_format = DATE("Y-m-d");
$next_Christmas = DATE("Y") . "-12-25";
$next_Easter = date("D d M Y", strtotime("2009-03-21
+".easter_days(2009)." days"));
$days_until_Christmas = ( strtotime($next_Christmas) -
strtotime($todays_date_seasonal_format) ) / 86400;
$days_until_Easter = round(( strtotime($next_Easter) -
strtotime($todays_date_seasonal_format) ) / 86400);
echo $days_until_Christmas . "<br>";
echo $days_until_Easter . "<br>";
Try this:
http://www.webbytedd.com/b2/easter/
It's just an organizational issue.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php