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 / Can't insert Date/time...
Power Automate
Answered

Can't insert Date/time in format dd.MM.yyyy in SharePoint list

(0) ShareShare
ReportReport
Posted on by 62

Hi everyone!

I have a simple task. When a user receives an email, it is necessary to update the corresponding entries in the SharePoint list.

The SharePoint list contains a column ReportDay in the Date/Time format (only Date).

The problem is that I can't update the value of this column in the format dd.MM.yyyy. (for example 13.07.2023)

I can do it manually in the Sharepoint list. Through the application that I made in Power Apps- I can too. But via flow doesn't work.

Flow ends with an error: 

Action 'Update_item' failed
The 'inputs.parameters' of workflow operation 'Update_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/ReportDay' is required to be of type 'String/date'. The runtime value '"13.07.2023"' to be converted doesn't have the expected format 'String/date'.

Tried a lot of things.
The last thing I tried.

Created a variable Today, then substituted into Compose action with Expression 

formatDateTime(variables('Today'),'dd.MM.yyyy')

kalakosha_0-1689242484681.png

, then substituted into Update item action

kalakosha_1-1689242668551.png

At the output get the folowing:

kalakosha_2-1689242812983.png

kalakosha_3-1689243191241.png

In the same time I can insert manualy date 13.07.2023 in ReportDay column in SharePoint list

kalakosha_4-1689243432129.png

What am I doing wrong?

Thanx in advance!

 

 

Categories:
I have the same question (0)
  • tatmaninov Profile Picture
    104 on at

    My guess is when you change the format in the flow you effectively change the date to a string and it is not recognised in the list anymore.  I think you just need to change the formatting of your list under column settings to change the way the date is shown in the list.

  • Verified answer
    Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi @kalakosha 

     

    Pls use the below expression for saving datetime column in SharePoint:

    formatDateTime(variables('Today'),'yyyy-MM-dd')

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • tatmaninov Profile Picture
    104 on at

    Calculated column with these settings

    tatmaninov_0-1689245807321.png

    Achieves this;

    tatmaninov_1-1689245912606.png

     

  • Kalakosha Profile Picture
    62 on at

    Hi and thank you for you help!

    Yes, your trick works.

    But the date value in the SharePoint list instead of 13.07.2023 is displayed as 12.07.2023.
    Although the flow tracking shows that the value is updated on 13.07.2023.

    kalakosha_0-1689248883086.png

    kalakosha_2-1689249110060.png

    But on SharePoint list I see

    kalakosha_3-1689249161922.png


    Is this a regional setting for the SharePoint site?

  • Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi @kalakosha 

     

    Yes, you are right but internally SharePoint stores datetime field in 'yyyy-MM-dd' format.

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

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 612

#2
Valantis Profile Picture

Valantis 344

#3
11manish Profile Picture

11manish 326

Last 30 days Overall leaderboard