Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

How to formatt datetime-values in "Select" statement

(0) ShareShare
ReportReport
Posted on by 56

Hi there,

 

I have a SharePoint list with time-recordings. From Date/Time, To Date/Time and Job done.

 

I want to to create a timesheet as PDF from this list, which works fine, execpt the formatting of the date/time values. 

IF  I try to use and expression, that formatts a date/time value to say 'hh:mm' (

formatDateTime(outputs('Get_item')?['body/Von'], 'hh:mm' )

I get an error "

Correct to include a valid reference to 'Get_item' for the input parameter(s) of action 'select'"

 

Anyone any ideas?

 

Best, Uwe

 

I use the select function. I IScreenshot 2023-01-30 082451.png

  • UweGrunewald Profile Picture
    56 on at
    Re: How to formatt datetime-values in "Select" statement

    You saved my day. A million thx

  • Verified answer
    v-chengfen-msft Profile Picture
    on at
    Re: How to formatt datetime-values in "Select" statement

    Hi @UweGrunewald ,

    Please try:

    formatDateTime(item()?['Von'], 'hh:mm' )

     

    Best Regards

    Cheng Feng

     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May 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 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492