[TriLUG] quuick PHP date question
Craig Duncan
craigduncan at nc.rr.com
Thu Aug 17 14:32:26 EDT 2006
Aaron S. Joyner wrote:
>Greg Brown wrote:
>
>
>
>>Okay, I can get the second from EPOCH fairly easily:
>>
>>$rightNow= mktime();
>>
>>now I want to add 604800 seconds to that date and revert it back to a
>>printed date. How do I do that in PHP? I'm surfing php.net and havne't
>>found the easy solution yet.
>>
>>Greg
>>
>>
>
>See the other PHP thread for why you'd be a lot better off asking for +1
>week. :) I'll let someone else fill in the PHP function details, I've
>got to bolt out the door.
>
>Aaron S. Joyner
>
>
I agree, you are probably looking to do something like this...
$nextWeekDate = date(|'m/d/Y', strtotime('+1 week'));
Craig Duncan
|
More information about the TriLUG
mailing list