[pmwiki-users] Today Tomorrow the day after and so on

Firefly stealth at fireflyuk.net
Mon Apr 3 05:04:51 CDT 2006


Thank you Hans

	Your as always very helpful!

-----Original Message-----
From: Hans [mailto:design at softflow.co.uk] 
Sent: 03 April 2006 10:47
To: Firefly
Cc: pmwiki-users at pmichaud.com
Subject: Re: [pmwiki-users] Today Tomorrow the day after and so on

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                           


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.4/299 - Release Date: 31/03/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.4/299 - Release Date: 31/03/2006
 





More information about the pmwiki-users mailing list