Forums / Cotonti / Extensions / Parsing HTML in custom module question

lukgoh
#33015 2012-02-02 19:20

I have a new question:

I am trying to set a start and end date for a page in my custom module (not an actual page in the page module). To set the date the page is submitted I am using this: (int)$sys['now'] which is working just fine. What I would like to know is how to automatically add 1 week to that value and set it as the end date?

Thanks,

Luke.

Added 8 minutes later:

Is this a safe method: 604800 + time()

This post was edited by lukgoh (2012-02-02 19:28, 12 years ago)