I'm trying to format my date field for display (basically chop off the time) from a D365 date to put into an email and I'm getting
"The expression is invalid." when I try to do this in the Expressions window. The xxxx_notificationdate is in a Apply to Each loop.
formatDateTime(@{items('Apply_to_each')?['xxxx_notificationdate']},'yyyy-MM-dd')
What am I doing wrong?