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

Avatar

Avatar
Level 1
florianf6984149
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile

Avatar
Level 1
florianf6984149
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile
florianf6984149
Level 1

15-06-2021

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!!!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 3
Level 2
jamal
Level 2

Likes

6 likes

Total Posts

5 posts

Correct reply

3 solutions
Top badges earned
Affirm 3
Boost 5
Boost 3
Validate 1
Affirm 1
View profile

Avatar
Affirm 3
Level 2
jamal
Level 2

Likes

6 likes

Total Posts

5 posts

Correct reply

3 solutions
Top badges earned
Affirm 3
Boost 5
Boost 3
Validate 1
Affirm 1
View profile
jamal
Level 2

21-06-2021

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

Answers (1)

Answers (1)

Avatar

Avatar
Boost 250
Employee
ramon_bisswanger
Employee

Likes

270 likes

Total Posts

397 posts

Correct reply

198 solutions
Top badges earned
Boost 250
Affirm 100
Give Back 25
View profile

Avatar
Boost 250
Employee
ramon_bisswanger
Employee

Likes

270 likes

Total Posts

397 posts

Correct reply

198 solutions
Top badges earned
Boost 250
Affirm 100
Give Back 25
View profile
ramon_bisswanger
Employee

25-06-2021

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