web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : pT1i1Sx5zyV5pRjYh9ljuu
Power Automate - General Discussion
Answered

milliseconds to date and time format

Like (0) ShareShare
ReportReport
Posted on 19 Oct 2022 21:26:13 by 12

Hello Everyone 

 

I'm trying to get data from worksheet and send it by email but part of this data is a date and it come as milliseconds 

and i want to convert it back to date and time format 

i created a test flow to test the code but so far no luck here SH

 

Input

benben777_0-1666214626159.png

 

output

benben777_1-1666214660365.png

 

 

Thank you all for the help

 

 

I have the same question (0)
  • Verified answer
    benben777 Profile Picture
    12 on 20 Oct 2022 at 12:11:38
    Re: milliseconds to date and time format

    Thank you all for the quick response and the help 

    I was able to resolve that with your help and here is my final code

     

    benben777_2-1666268025268.png

     

     

    benben777_1-1666267888351.png

     

  • SudeepGhatakNZ Profile Picture
    14,381 Most Valuable Professional on 20 Oct 2022 at 02:39:47
    Re: milliseconds to date and time format

    @benben777 ,

    You are nearly there.

    Just add formatDateTime to your Compose output.

    formatDateTime(outputs('Compose'),'dd-mm-yyyy')

  • benben777 Profile Picture
    12 on 19 Oct 2022 at 23:51:06
    Re: milliseconds to date and time format

    Thank you @ekarim2020

     

    I tried that but still not the right format 

     

    benben777_0-1666222969651.png

     

    Is there different format i can use?

     

    Thanks

  • Ellis Karim Profile Picture
    11,202 Super User 2025 Season 2 on 19 Oct 2022 at 21:51:22
    Re: milliseconds to date and time format

     

    Hi @benben777 ,

     

    Try setting the DateTime Format to ISO 8601. This will convert Excel integer dates for you:

    Snag_5c9d137.png


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete