
Announcements
Use formatDateTime() with parseDateTime() if needed.
If your input is a string in MM/DD/YYYY:
This will:
Parse using en-US to correctly interpret MM/DD/YYYY
dd/MM/yyyy (e.g., 11 Feb 2025 → 11/02/2025)When inserting into a Date column in SharePoint, do not send a formatted string. Instead, use ISO format (i.e., yyyy-MM-dd), which SharePoint expects for date fields.
Use this expression to convert the original MM/DD/YYYY string into ISO format:
This way, SharePoint stores the correct date (e.g., 2025-02-11), and will display it in the user’s regional format, such as
11/02/2025for UK orFeb 11, 2025for US.
formatDateTime(parseDateTime(triggerOutputs()?['body/YourDateField'], 'en-US'), 'yyyy-MM-dd')