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 Automate
Answered

Date Formatting

(0) ShareShare
ReportReport
Posted on by 108

Hi all,

 

Hoping you can help with this.

I'm passing a: 

 

formatdatetime(utcnow(),'dd/MM/yyyy')

 

which will give me an output of 13/02/2020. As expected.

 

Now, when I try and pass that into a 'create item' for a SP list... it fails... stating that 'String was not recognized as a valid DateTime.'

 

Despite the fact that the forumla states that it converts to a datetime format.

 

edit: Changing the format to yyyy/MM/dd works... this doesn't seem very logical. Is there a simple explanation as to why it would accept in the y/m/d format as opposed to the d/m/y format?

Categories:
I have the same question (0)
  • RobElliott Profile Picture
    10,428 Super User 2026 Season 1 on at

    @CameronTCD can you post a screenshot of your flow steps?

    Rob
    Los Gallardos

  • CameronTCD Profile Picture
    108 on at

    YthUIey.png

     

  • Verified answer
    RobElliott Profile Picture
    10,428 Super User 2026 Season 1 on at

    @CameronTCD it's invariably better to do the formatDateTime expression with 'yyyy-MM-dd' and let your SharePoint regional settings put it into the correct format

    Rob
    Los Gallardos

  • ChristianAbata Profile Picture
    8,953 Most Valuable Professional on at

    Yes @CameronTCD  as @RobElliott  just what you need to change is your regional time zone in sharepoint.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard