Share » Forums » Developer » how to get the current time in...

how to get the current time in ezpublish?

how to get the current time in ezpublish?

Monday 24 May 2004 11:31:20 pm - 1 reply

Author Message

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

Cheers
Tore

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

36 542 Users on board!

Forums menu