Re: Calendar Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 11, 2009 at 03:53:58PM -0400, tedd wrote:

> Hi gang:
>
> I want to show the dates for all Fridays +-30 days from a specific date.
>
> For example, given today's date (8/11/2009) the Fridays that fall
> +-30 days are July 17, July 24, July 31, Aug 7, Aug 14, Aug 21, Aug
> 28, and Sept 4.
>
> I'm curious, how would you guys solve this?

Convert to julian days, then add or subtract days as desired. Then
convert back to gregorian.

Paul

-- 
Paul M. Foster

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux