Dynamic dates
Dynamic dates can be used in message body and landing pages.
The time zone is taken from the project settings, localization is based on the selected language of the project owner.
Examples of using
Usage format
You need to write {# format | operation #}, {# format #}
format - list of required variables
operation - action on the date, the operation is an optional parameter, you can omit this expression if it is necessary.
Operation table
Keyword | Example |
---|---|
second или seconds | +10 seconds |
minute или minutes | +40 minutes |
hour или hours | +1 hour |
day или days | +10 days |
week или weeks | +2 weeks |
month или months | +4 months |
year или years | +1 year |
Format table
Name | Description | Example |
---|---|---|
d | Day of the month (01 to 31) | 01 |
D | Text representation of the day (three letters) | Mon |
j | Day of the month without zeros (1 to 31) | 1 |
l | Full text representation of the day | Wednesday |
N | Numeric representation of the day in the format ISO-8601 (1 for Monday, 7 for Sunday) | 1 |
S | English ordinal suffix of the day of the month (2 symbols st, nd, rd or th. Pairs well with j). | st |
w | Numeric representation of the day (0 for Sunday, 6 for Saturday) | 1 |
z | Day of the year (0 to 365) | 365 |
W | Week number of the year according to ISO-8601 (weeks starting on Monday) | 4 |
F | Full text representation of the month (January to December) | May |
m | Numeric representation of months (01 to 12) | 01 |
M | Brief textual representation of the month (three letters) | Jan |
n | Numeric representation of the month without leading zeros (from 1 to 12). | 10 |
t | Number of days in the current month | 28 |
L | High year (1 if it is a high year, 0 otherwise) | 1 |
o | Year number ISO-8601 | 2021 |
Y | Four-digit representation of the year | 1989 |
y | Two-digit representation of the year | 21 |
a | Lower case am or pm | am (morning) |
A | Uppercase AM or PM | AM (morning) |
B | Internet time (от 000 до 999) | 111 |
g | 12 hour format (1 to 12) | 10 |
G | 24 hour format ( 0 to 23) | 8 |
h | 12 hour format ( 01 to 12) | 12 |
H | 24 hour format ( 00 to 23) | 04 |
i | Minutes with leading zeros (00 to 59) | 07 |
s | Seconds with leading zeros (00 to 59) | 44 |
u | microseconds | 12345 |
e | Time zone identifier | UTC |
I | Date in daylight saving time (1 if daylight saving time, 0 otherwise) | 0 |
O | Greenwich Mean Hour Difference (GMT) | +0100 |
P | Greenwich Mean Time (GMT) difference in hours:minutes | +01:30 |
T | Time zone abbreviations | MDT |
Z | Time zone offset in seconds. The offset for time zones west of UTC is negative. | -43200 |
c | date ISO-8601 | 2013-05-05T16:34:42+00:00 |
r | date RFC 2822 | Fri, 12 Apr 2013 12:01:05 +0200 |
U | Seconds since Unix epoch | January 1 1970 00:00:00 GMT |
If the expression is given incorrectly, instead of the expression, the symbol “$“ will be sent as text. We recommend using Preview for verification.