Increment date in Calendar with strtotime

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
stopsatgreen
Power Poster
Power Poster
Posts: 322
Joined: Sat Feb 04, 2006 1:24 am

Increment date in Calendar with strtotime

Post by stopsatgreen »

In the calendar module I'd like to have an extra variable which is one day after the start date ($event.event_date_start). I think I need to use strtotime, but I can't work out how. At the moment I have a UDT with the following function:

$smarty->assign('plusoneday', strtotime('+1 day'));

But it's working on today's date, not event_date_start. How should I do this?
stopsatgreen
Power Poster
Power Poster
Posts: 322
Joined: Sat Feb 04, 2006 1:24 am

Re: Increment date in Calendar with strtotime

Post by stopsatgreen »

*bump*

I'm not having much luck getting my questions answered lately  :(
streever

Re: Increment date in Calendar with strtotime

Post by streever »

I have the same problem.

We need to grab somehow the value of the event's day: but I am having a hard time figuring out how to grab that.
Post Reply

Return to “CMSMS Core”