Home > Getting Started > Email Templates > Date Time Global Tag
Date Time Global Tag
[#now(DateTime(F))] - The date/time the email notification was generated.
The format string (by default “F”) can be replaced with any standard .Net DateTime format string.
Note:These formats will utilize the email recipient’s selected culture.
Standard Date and Time Format Strings:
- d: 6/15/2008
- D: Sunday, June 15, 2008
- f: Sunday, June 15, 2008 9:15 PM
- F: Sunday, June 15, 2008 9:15:07 PM
- g: 6/15/2008 9:15 PM
- G: 6/15/2008 9:15:07 PM
- m: June 15
- o: 2008-06-15T21:15:07.0000000
- R: Sun, 15 Jun 2008 21:15:07 GMT
- s: 2008-06-15T21:15:07
- t: 9:15 PM
- T: 9:15:07 PM
- u: 2008-06-15 21:15:07Z
- U: Monday, June 16, 2008 4:15:07 AM
- y: June, 2008
(see http://msdn.microsoft.com/en-us/library/az4se3k1.aspx for more information)
Alternatively, a custom format string containing any alphanumeric value, including the ‘ ‘ (space), ‘:’ (colon) and ‘/’ (forward slash) characters may be used instead.
Example: The email tag “[#now(DateTime(dd/M/yyyy))]” will result in the value “15/6/2008”
(see http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx for more information)
See also
|