On Sat, 2003-09-13 at 02:50, delz wrote:

> I want to know how do I use computations on dates in php or mysql like for
> example, today is September 13, 2003 (2003-09-13) and I want to get the date
> output if I add 5 days from the given date so that my output would be
> September 18, 2003 (2003-09-18). And if any given day falls on a Sunday, it
> will be moved to Monday. I just want to disregard Sunday and want to use
> Monday to Saturday. Anyone who can help me will be appreciated.


Delz,

    Read this article.  I found it very informative when I was looking
into doing Date Arithmetic with MySQL.

http://www.devshed.com/Server_Side/MySQL/DateArithmetic/

-Pete


-- 
perl -e 'print pack("H*", "70766572746573406E79632E72722E636F6D0A")'

Reply via email to