Expand my Community achievements bar.

We are excited to introduce our latest innovation to enhance the Adobe Campaign user experience — the Adobe Campaign v8 Web User Interface!
SOLVED

Need a variable to call in the email delivery that references the time that an email is sent

Avatar

Employee

Hi Experts,

 

We are looking to set up a variable in ACS (using a content block) to deliver an email that directly references the date/time an email was sent. Is it possible to reference the send time in the email?

 

If they use JavaScript to call out the current date, if someone views the email as a web page, the code will run live and return the date/time that the user is viewing the email.

 

Thanks,

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @RRafiki ,

In classic, to achieve this use case we will be using the below script.

<%= formatDate(new Date(), "%2D-%2M-%4Y %2H:%2N:%2S") %>
<%= formatDate(new Date(), "%2D-%2M-%4Y") %>

Partha_Sarathy__0-1678693050095.png

 

Try this in ACS, Hope it might work.

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @RRafiki ,

In classic, to achieve this use case we will be using the below script.

<%= formatDate(new Date(), "%2D-%2M-%4Y %2H:%2N:%2S") %>
<%= formatDate(new Date(), "%2D-%2M-%4Y") %>

Partha_Sarathy__0-1678693050095.png

 

Try this in ACS, Hope it might work.

Avatar

Administrator

Hi @RRafiki,

Was @ParthaSarathy's solution helpful to resolve your query? In case it was helpful, then kindly choose it as the 'Correct Reply'. If not and you still need more help, then do let us know.

Thanks!



Sukrity Wadhwa