MWML [DATETIME]-Tag

MWML [DATETIME]-Tag

Outputs the current1, local time and/or date according to the regional settings (locale).

Usage

Email templates, Landing page templates, Survey templates, Emails, Landing pages, Surveys, Account constants, Dynamic content, Personalization helpers

Syntax

[DATETIME ... /]

Attributes

Attribute
Value
Description
locale
de_DE
en_EN
fr_FR
...
Sets regional settings.
base
%{Field-ID }
Use time/date from a subscriber field instead of the current time. The field must be of type "Date".
format
Text
Format of the date or time. List of all options see strftime()
adjustment
Text
Manipulate date/time. Modifiers see date_modify()

Example

MWML-Input
Preview
MWML-Input
  1. [DATETIME format='%A, %d. %B %Y' locale='de_DE' /]
  2. [DATETIME format='%A, %d. %B %Y' locale='en_EN' /]
  3. [DATETIME format='%A, %d. %B %Y' locale='en_EN' adjustment='+ 2 days' /]
  4. [DATETIME base='%{5}'  format='%d.%m.%Y' adjustment='+2 days' /]
Preview
Montag, 24. Juni 2024
Monday, 24. June 2024
Wednesday, 26. June 2024
26.06.2024
 


1. For mailings: Time of personalization, not delivery.