[pmwiki-users] Today Tomorrow the day after and so on
Hans
design at softflow.co.uk
Mon Apr 3 04:47:08 CDT 2006
Monday, April 3, 2006, 10:19:53 AM, Firefly wrote:
> Could someone point me in the right direction of being able to
> obtain todays date, todays date +1 day, Todays date +2 days and so
> on up to 4
# add page variable {$Today}, formats today's date as yyyy-mm-dd
$FmtPV['$Today'] = 'strftime("%Y-%m-%d", time() )';
for tomorrow you can add to time() 24*60*60=86400 (seconds in a day):
$FmtPV['$Tomorrow'] = 'strftime("%Y-%m-%d", time()+86400 )';
etc. multiples of 86400
For time formatting see
http://uk.php.net/strftime
Best,
Hans
More information about the pmwiki-users
mailing list