Documentation >> Conditionals >> Messages >> creationDate >> msg.creationdate.day
Message Conditional Macro: Msg.CreationDate.day
Operators:
- == (equal to)
- != (not equal to)
- greaterThan
- greaterThanOrEqualTo
- lessThan
- lessThanOrEqualTo
- no operator
Usage Notes
- Tests the day of the creation date of the current message, comparing it with the |conditional value| on the right side of the |conditional operator|.
- This is a numerical conditional, so the conditional value it's compared with must be a number.
Examples
Here's the creation date of this message: 9/2/2002
In the following example, the first line will be shown because the message was created on day 2 of the month.
<!--#if condition="msg.creationDate.day == '2'"-->
1. This message was created on the second day of the month.
<!--#else-->
2. This message was created on some other day of the month.
<!--#endIf-->
See the above code in action, here:
1. This message was created on the second day of the month.
View in DG
|