Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Date Time format problem in Sharepoint List

(0) ShareShare
ReportReport
Posted on by 124

Hi,

 

I've been stuck for awhile now and the different solutions dons't seems to work for me.

 

I have a "Date and Time" column in SharePoint:

2020-05-27 18_04_16-Microsoft Store.png

And when it's approved or denied the result looks like this:

2020-05-27 18_04_30-Frånvaro - Ledighet - All Items.png

(The time "02:00" is something that I don't set. The code for the input is: 

utcNow('MM/dd/yyyy')

)

 

I want to add the actual time in 24h format but I only get this error:

2020-05-27 18_08_20-Run History _ Power Automate.png 

OpenApiOperationParameterTypeConversionFailed. The 'inputs.parameters' of workflow operation 'ESM_-_Update_item:_Approved' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/ApprovalDate' is required to be of type 'String/date-time'. The runtime value '"27-05-2020T16:04:56"' to be converted doesn't have the expected format 'String/date-time'.

 

I have tried these expressions:

convertTimeZone(utcNow(),'UTC','W. Europe Standard Time','dd-MM-yyyyTHH:hh:mm')
convertTimeZone(utcNow(),'UTC','W. Europe Standard Time','dd/MM/yyyyTHH:hh:mm')
utcNow('dd-MM-yyyyTHH:hh:mm')
utcNow('dd/MM/yyyyTHH:hh:mm')

 

Anyone have any idé?

 

Thank you!

  • GE_AC Profile Picture
    2 on at
    Re: Date Time format problem in Sharepoint List

    Does the time zone take into account the summer time?

  • ZowieS Profile Picture
    124 on at
    Re: Date Time format problem in Sharepoint List

    @ScottShearer wrote:

    @ZowieS 

    You can update the column value using the expression utcNow() with no additional formatting.

    If your issue is that you want the time displayed in a 24 hour format, you need to make a change to the SharePoint site settings.

    Go to the site settings page and then click on Regional information under the Site Settings group.  At the bottom, change the time format to 24 hour.  This will impact the entire site - not just this list.

    image.png


    Hi,

     

    Yes, the Sharepoint Site has that time format and Locate is "Sweden".

     

  • ZowieS Profile Picture
    124 on at
    Re: Date Time format problem in Sharepoint List

    @rohentz wrote:

    Hi @ZowieS how are you?

     

    Just a doubt, are you using Approvals?

     

    If so, did you try to use the "Completion date" attribute?

     

    Sample:

     

    13.jpg

     

    Please let me know if you have doubts or concerns about the solution provided.

     

    Regards.

     

    Rodrigo Hentz

    Microsoft Support Engineer

     

     


    Hi,

     

    Ah, Thank you!

    I missed that and that solved the problem 😁

  • ZowieS Profile Picture
    124 on at
    Re: Date Time format problem in Sharepoint List

    @efialttes wrote:

    Hi!

    When udating your Sharepoint item, did you also tried with the following expression as DateTime column input?

     

    utcNow()

     

    Thanx!


     

    Hi,

     

    Ah, It might just be that simple 😅

    But I haven't tested that since it worked with the approval date.

     

    Thank you!

  • ScottShearer Profile Picture
    25,228 Most Valuable Professional on at
    Re: Date Time format problem in Sharepoint List

    @ZowieS 

    You can update the column value using the expression utcNow() with no additional formatting.

    If your issue is that you want the time displayed in a 24 hour format, you need to make a change to the SharePoint site settings.

    Go to the site settings page and then click on Regional information under the Site Settings group.  At the bottom, change the time format to 24 hour.  This will impact the entire site - not just this list.

    image.png

  • Verified answer
    Rodrigo Hentz Profile Picture
    on at
    Re: Date Time format problem in Sharepoint List

    Hi @ZowieS how are you?

     

    Just a doubt, are you using Approvals?

     

    If so, did you try to use the "Completion date" attribute?

     

    Sample:

     

    13.jpg

     

    Please let me know if you have doubts or concerns about the solution provided.

     

    Regards.

     

    Rodrigo Hentz

    Microsoft Support Engineer

     

     

  • efialttes Profile Picture
    14,756 on at
    Re: Date Time format problem in Sharepoint List

    Hi!

    When udating your Sharepoint item, did you also tried with the following expression as DateTime column input?

    utcNow()

    Thanx!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1