This topic is locked

Add 6 days to date

1/16/2009 4:24:29 PM
PHPRunner General questions
vin7102 author

Hi,
I have a table called "work_week" and it has fields called "Start_Date" and "thru".

On the add record page, I want to select the monday from a date picker then possibly using the "before record added" event (or any other ideas), have the "thru" field updated with the next sunday's date,

so it would be an offset of +6 days from the Start_Date.

Thank You

vin7102 author 1/17/2009

Never mind, I Got it figured out using:

strtotime ( '+6 day' , strtotime ( $date ) ) ;