Send email task date format

Hi guys,

can you explain how I can format Date or LocalDate in Send Email Task?
When I want to send a Date or LocalDate object the format is:

Mon Apr 11 00:00:00 CEST 2022

but I want this:

yyyy-MM-dd

Thanks in advice,
Best regards,
Peter

Hello,

could you please explain what do you mean when saying

Do you use process variables in email content? What is the use case?

Best regards,
Artem