Email Date Strings

NOTE: Date-based personalization strings use the system time (the data center location of your Marketing Cloud account) and appear in US format. However, these values can be transformed using AMPscript date functions.

String Description Example Output
xtmonth Full name of the month when email is sent January
xtmonthnumeric Current month as a number 1
xtday Current day of the month when the email was sent 15
xtdayofweek Current day of the week when the email was sent Monday
xtyear Current year when the email was sent 2018
xtshortdate Current date when the email was sent in short format 01/15/2018
xtlongdate Current date when the email was sent in long format Monday, January 15, 2018

Example

This example will update a date field in a Data Extension with the system time when an email is sent, which can be used as a suppression Data Extension for future sends:

%%[

InsertDE("Sent Subscribers", "Member ID", _subscriberkey, "sent date", xtshortdate)

]%%