Hi
I’ll add support for specifying the dateformat when selecting from the “Add dynamic content” menu in the next version, but as a workaround you can add this to your Custom JS (replace DueDate with the actual internal name of your field):
var myCustomDate = ""; // Must use var an not let to make it globally available
function dffs_PreSaveAction() {
const date = getFieldValue("DueDate", "dateObject");
const formatter = new Intl.DateTimeFormat('en-US', { day: '2-digit', month: '2-digit', year: 'numeric' });
myCustomDate = formatter.format(date);
}
Now add this variable to your email body like this:
myCustomDate: [[variable:myCustomDate]]
Alexander