{DateTime format="string" timezone="string" /}

Displays always the actual time in a formatted string.

Params for DateTime:

format: Defines the format of the displayed time. For additional information on what you can use in this parameter, have a look at the manual for the date function.

Predefined values are:

datetime // renders as Sun, 17 Dec 2017 09:53:04 +0000

date // 17.12.2017

time // 09:53

year // 2017

month // December

week // 50

day // Sunday

timezone: If you have not set your timezone in the php.ini file or you want the time in a different timezone to be displayed, then you can set a specific timezone. For valid entries have a look at the List of Supported Timezones.

How to use it:

{DateTime format="datetime"/}
{DateTime format="d.m.Y H:i" timezone="Europe/Berlin"/}
{DateTime format="Y-m-d H:i" timezone="Asia/Tokyo"/}
{DateTime format="Y-m-d H:i" timezone="Asia/Singapore"/}
{DateTime format="Y-m-d g:i A" timezone="America/New_York"/}


Sun, 17 Dec 2017 09:53:04 +0000

17.12.2017 10:53 // current time in Berlin

2017-12-17 18:53 // Tokyo

2017-12-17 17:53 // Singapore

12/17/2017 4:53 AM // New York

Available for:


© 2010 - 2017 FINWICK® UG

We have 46 guests and no members online