Solution : We use {!TODAY()} to display today's Date in Email Template.
Example:
1) To display today's Date : {!TODAY()}
2) To display only year of today's date : {!YEAR(TODAY())}
3) To display month in MMM format : {!case(month(today()),1,'Jan',2,'Feb',3,'Mar',4,'Apr',5,'May',6,'Jun',7,'Jul',8,'Aug',9,'Sep',10,'Oct',11,'Nov','Dec')}
4) To display date in MM/DD/YYYY format : {!MONTH(TODAY())} / 01/{!YEAR(TODAY())}
When you use above code in text email template the sample output will be like this.
Example:
1) To display today's Date : {!TODAY()}
2) To display only year of today's date : {!YEAR(TODAY())}
3) To display month in MMM format : {!case(month(today()),1,'Jan',2,'Feb',3,'Mar',4,'Apr',5,'May',6,'Jun',7,'Jul',8,'Aug',9,'Sep',10,'Oct',11,'Nov','Dec')}
4) To display date in MM/DD/YYYY format : {!MONTH(TODAY())} / 01/{!YEAR(TODAY())}
When you use above code in text email template the sample output will be like this.
No comments:
Post a Comment