So guys i have automation sending email. In the body email i want to add yesterday date, is it possible?
Now.addDays(-1).toString(“yyyy-MM-dd”)
Hi @Kelvin1
This will get the yesterday’s date
DateTime.Now.AddDays(-1).ToString(“dd.MM.yyyy”)
Can you share the sample HTML content here
Regards
Gokul
Yes, Its possible
DateTime.Now.AddDays(-1).Tostring("dd/MM/yyyy")
You can give desired date format in ToString(“Format”)
I have html body like this
"
Dear All,
This is the report for (date)
" i want to add date dynamically on the body email but still at the same line, is it possible?How can i add this at html body?
Try this out @Kelvin1
"Dear All,<br>This Is the report For"+DateTime.Now.AddDays(-1).ToString("dd.MM.yyyy")
Regards
Gokul
@Kelvin1
Try this
"<p>This is the report for "+DateTime.Now.AddDays(-1).Tostring("dd/MM/yyyy")+"</p>"
Hi @Gokul001 Thanks man it worked, appreciated it
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.