Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Help needed

(0) ShareShare
ReportReport
Posted on by 28

Hi,

 

I couldn't get this expression to work properly because the 'End Date' is 44815.3333333333 format

 

therefore it is not an integer therefore this expression is invalid. Please advice how can I edit this expression.

 

addDays('1900-01-02',formatnumber(item()['End Date'],'#0'),'MM-dd')

  • Kaif_Siddique Profile Picture
    2,104 Super User 2024 Season 1 on at
    Re: Help needed

    Hi @r0663664 ,

     

    Use below expression:

    Kaif_Siddique_0-1663271453133.png

    formatDateTime(addseconds('1899-12-30',int(formatnumber(mul(float(item()['End Date']),86400),'0'))),'dd-MM-yyyy hh:mm')

    Format datetime as per requirements.

     

    If you like my response, please give it a Thumbs Up.
    If this helps, please Accept as solution.

     

    Regards

    Kaif

  • Verified answer
    v-bofeng-msft Profile Picture
    on at
    Re: Help needed

    Hi @r0663664 ,

     

    Please try:

     

    addSeconds('1900-01-02',int(string(mul(mul(mul(item()['End Date'],24.0),60.0),60.0))))

     

    Best Regards,

    Bof

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow