Expand my Community achievements bar.

SOLVED

Formula to add in HTML for date "today plus 30d"

Avatar

Level 1

Hi, I want to add a date in my HTML: not today but "today plus 30d". Anyone able to tell me the formula to add into the HTML? Many thanks!!!

1 Accepted Solution

Avatar

Correct answer by
Level 2

Hi Florian,

 

I suggest transforming the date value as additional data/enrichment before putting it in the email html by referencing additional data. You can do this by using the expression: AddDays(GetDate(),30), if you want it to be exactly one month later, then you can just use AddMonths(GetDate(),1).

 

Cheers,

Jamal

View solution in original post

2 Replies

Avatar

Correct answer by
Level 2

Hi Florian,

 

I suggest transforming the date value as additional data/enrichment before putting it in the email html by referencing additional data. You can do this by using the expression: AddDays(GetDate(),30), if you want it to be exactly one month later, then you can just use AddMonths(GetDate(),1).

 

Cheers,

Jamal

Avatar

Employee Advisor

You can do it either using an enrichment as recommended above or else using a JavaScript content block.

Within the content block you also can format the date in the desired format easily