Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

florianf6984149
Level 1
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
jamal
Correct answer by
Level 2
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
jamal
Correct answer by
Level 2
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

ramon_bisswanger
Employee
Employee

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