Dropping this here for someone starting out with Power Automate and having a hard time finding the right way to format dates.
* Get the year:
formatDateTime(triggerOutputs()?['body/start'],'yyyy')
Equals 2024
* Get the month:
formatDateTime(triggerOutputs()?['body/start'],'MM')
formatDateTime(utcNow(),'MMMM') which gives the result August.
so MM=08, MMM=Aug, MMMM=August
*Long format date
formatDateTime(triggerOutputs()?['body/start'],'MMMM dd, yyyy')
Equals March 27, 2024
*Get day of the week
formatDateTime(triggerOutputs()?['body/start'],'dddd MMMM dd, yyyy')
Equals Wednesday March 27, 2024