Forums / Developer / how to get the current time in ezpublish?
xiao jc
Monday 24 May 2004 11:31:20 pm
thanks alot
Tore Skobba
Monday 24 May 2004 11:54:12 pm
In a template do {currentdate()}, this will return time in seconds since 1970. In order to format it do {currentdate()|datetime(custom, "%Y %m %d)}, which will return date on this form 2004 10 26
See here for more:http://www.ez.no/ez_publish/documentation/development/libraries/ez_template/operators/miscellaneous
http://www.ez.no/ez_publish/documentation/customization/tips_tricks/date_and_time_formats
CheersTore