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 / Date Time format probl...
Power Automate
Unanswered

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!

Categories:
I have the same question (0)
  • efialttes Profile Picture
    14,756 on at

    Hi!

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

    utcNow()

    Thanx!

  • Verified answer
    Rodrigo Hentz Profile Picture
    on at

    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

     

     

  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @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

  • ZowieS Profile Picture
    124 on at

    @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!

  • ZowieS Profile Picture
    124 on at

    @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

    @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".

     

  • GE_AC Profile Picture
    2 on at

    Does the time zone take into account the summer time?

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard