web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Formatting date in Pow...
Power Automate
Suggested Answer

Formatting date in Power automate to Sharepoint list

(0) ShareShare
ReportReport
Posted on by 27
In Power Automate, I have an expression to trim the email and extract the date value, outputting it in MM/DD/YYYY format, and then create a date item in the SharePoint List.
How do I convert this output to MM/DD/YYYY to DD/MM/YYYY?
 
Example below: if I have an input date of 11/02/2025, it is read as Nov 02 2025. When it creates the item in SharePoint List, it should be read as 11 Feb 2025.
 
 
If the input is like 31/01/2025, i will get this error message.
 
Action 'Create_item' failed: The 'inputs.parameters' of workflow operation 'Create_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/StartDateofLeave' is required to be of type 'String/date'. The runtime value '"31/01/2025"' to be converted doesn't have the expected format 'String/date'.
 
Thanks.
 
 
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Riyaz_riz11 Profile Picture
    3,893 Super User 2025 Season 2 on at
    Hi,
     

     Step 1: Convert string to a proper date object

     

    Use formatDateTime() with parseDateTime() if needed.

     

    If your input is a string in MM/DD/YYYY:

     
    formatDateTime(parseDateTime(triggerOutputs()?['body/DateField'], 'en-US'), 'dd/MM/yyyy')
     

    This will:

    Parse using en-US to correctly interpret MM/DD/YYYY

    Output as dd/MM/yyyy (e.g., 11 Feb 2025 → 11/02/2025)
     
     

    Step 2: Store as a proper date in SharePoint

    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:

     
    formatDateTime(parseDateTime(triggerOutputs()?['body/DateField'], 'en-US'), 'yyyy-MM-dd')
     

    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/2025 for UK or Feb 11, 2025 for US.

     
     

    Full Expression Example (for SharePoint Date Column)

    formatDateTime(parseDateTime(triggerOutputs()?['body/YourDateField'], 'en-US'), 'yyyy-MM-dd')



     

     If You Still Want to Show DD/MM/YYYY as Text (e.g., in a string column)

     
    formatDateTime(parseDateTime(triggerOutputs()?['body/YourDateField'], 'en-US'), 'dd/MM/yyyy')


    If I have answered your question, please mark it as the preferred solution ✅ . If you like my response, please give it a Thumbs Up 👍.
    Regards,
    Riyaz

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard