How do i get the date for (eg) a week ago

How do i get the date for (eg) a week ago

Friday 05 March 2004 5:07:46 am - 2 replies

Author Message

liu spider

Friday 05 March 2004 9:08:19 am

try this:
{sub(currentdate(),3600)|datetime(custom,"%Y/%m/%d")}

this will get the time one hour ago

TIPS: remember no +/- in eZ template, only add and sub etc

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Nick Woods

Friday 05 March 2004 9:25:32 am

Thanks ! wasnt aware that I shouldnt use + and -

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.