コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

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 受け入れられたソリューション

Avatar

正解者
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.

元の投稿で解決策を見る

2 返信

Avatar

正解者
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