Skip to main content
Adobe Employee
March 11, 2023
Solved

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

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,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
ParthaSarathy
ParthaSarathyAccepted solution
Community Advisor
March 13, 2023

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") %>

 

Try this in ACS, Hope it might work.

~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups

2 replies

ParthaSarathy
Community Advisor
ParthaSarathyCommunity AdvisorAccepted solution
Community Advisor
March 13, 2023

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") %>

 

Try this in ACS, Hope it might work.

Translate
~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups
Sukrity_Wadhwa
Level 4
April 3, 2023

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!

Translate
Sukrity Wadhwa