Hi,
I want to add a date that is 30 days after the email is sent. So, which HTML tag or code do I need to mention in the Email template?
Views
Replies
Total Likes
Hello @rasiksj0311,
Please try the following code in HTML :
<%
var currentDateMinus30 = new Date();
currentDateMinus30.setDate(currentDateMinus30.getDate() - 30);
%>
<p><%= formatDate(currentDateMinus30, "%2D/%2M/%4Y") %> </p>
I tried this code and it is working.
PFA Screenshot:
Kr,
Parvesh
Thanks Parvesh!
I tried this code and it is working on email. But when it moved on the web it shows the current date + 30 days. It should be the same on email and web versions also. Do you have any idea about this, how the date on webmail will be the same as on email?
I appreciate your help in advance.
Views
Replies
Total Likes
Hi @Parvesh_Parmar,
Could you please help @rasiksj0311 further with their query?
Thanks!
Views
Replies
Total Likes
Views
Likes
Replies