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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Formatting Date Time V...
Power Automate
Answered

Formatting Date Time Variables

(0) ShareShare
ReportReport
Posted on by 22

Issue with the formatting of the date time format
The formatting works with the dynamics connector in the flow but whilst using the CDS connector it seems to fail.

 

formatDateTime(variables(‘File Created On’),’dd-MM-yyyy’)

 

Error
Unable to process template language expressions in action ‘CREATE_File_in_Sharepoint’ inputs a’In function ‘formatDateTime’, the value provided for date time string ‘’ was not valid. The datetime string must match ISO 8601 format.’.

 

@abm

 

Raj

Categories:
I have the same question (0)
  • Verified answer
    v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @rk2048 ,

     

    Could you please share a screenshot of the configuration of your flow?

    What is the output of the "File Created On" variable?

    The error message told that the expression variables(‘File Created On’) have a date time string ‘’ was not valid, please check from your flow and make sure the variable should have a date time output.

     

    Best regards,

    Alice       

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

  • rk2048 Profile Picture
    22 on at

    Thanks the file created on variable's value had been cleared.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard