Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
Unanswered

@formatdatetime issue

(0) ShareShare
ReportReport
Posted on by 6

Greetings

 

I am trying to format date time from UTC to iso 8061 I have tried formatDateTime(utcNow(),'yyyy-MM-ddThh:mm:ss') and it spits out both of the time stamps together like "2021-09-21T15:30:00.02300002021-10-15T11:13:43"  How do I get it to just spit out the later half and not the utc as well?

 

 

  • v-bofeng-msft Profile Picture
    on at
    Re: @formatdatetime issue

    Hi @46m4art :

    Could you provide a screenshot of your flow in edit mode?

    Could you create a compose action and then set its value to 

    @{formatDateTime(utcNow(),'yyyy-MM-ddThh:mm:ss')}

    and check the result after it runs?

    Best Regards,

    Bof

  • 46m4art Profile Picture
    6 on at
    Re: @formatdatetime issue

    I have tried multiple times, would it help to see the whole flow?  It is not working on my end

  • 46m4art Profile Picture
    6 on at
    Re: @formatdatetime issue

    Okay I tried the above and this is the error it kicked back, these are the types of errors I am seeing regardless of what I am trying.  I feel like I am missing something 

    46m4art_0-1634569568445.png

    The 'inputs.parameters' of workflow operation 'Create_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/TimeS' is required to be of type 'String/date'. The runtime value '"2021-09-21T15:30:00.02300002021-10-18T03:03:49"' to be converted doesn't have the expected format 'String/date'.

  • v-bofeng-msft Profile Picture
    on at
    Re: @formatdatetime issue

    Hi @46m4art :

    I've made a test and it worked as expect:

    vbofengmsft_1-1634538955596.png

     

    vbofengmsft_0-1634538930069.png

    Is that you want?

    Best Regards,

    Bof

     

  • Expiscornovus Profile Picture
    32,155 Most Valuable Professional on at
    Re: @formatdatetime issue

    Hi @46m4art,

     

    You can specify the format also within the utcNow function.

     

    Can you try this expression instead:

    utcNow('yyyy-MM-ddThh:mm:ss')

     

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

Featured topics