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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Converting Date into D...
Power Apps
Answered

Converting Date into Days Number format

(0) ShareShare
ReportReport
Posted on by 16

Want to convert date to its Days Number format as is shown in Excel popup for formatting cell. I want to enumerate days between Arrival Date & Departure Date for further calculations. Screen Shot attached to clarify my query.

Excel popup.jpg
Categories:
I have the same question (0)
  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at
    If your eventual goal is to calculate difference in days between two dates, I suggest you use the DateDiff function.

    Here is more info about it: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-dateadd-datediff#description

    ---
    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

    Thanks!
    Hardit Bhatia
    The Power Addict
    https://thepoweraddict.com
  • eka24 Profile Picture
    20,925 on at
    Datevalue(Datefield.SelectedDate)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @k16744 

    The idea proposed by @PowerAddict is correct.  If you want to show exactly the same number as in your picture use this code.

     

    DateDiff(Date(1900,1,0),Today(),Days)+1

     

    The output will be a number

     

    43876

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at
    And just to add to that, if the eventual goal is to calculate the difference between Arrival Date and Departure Date, you can simply use DataDiff to do that:

    DataDiff(ArrivalDate, DepartureDate) will give you DepartureDate-ArrivalDate

    DateDiff(DepartureDate, ArrivalDate) will give you ArrivalDate-DepartureDate

    ---
    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

    Thanks!
    Hardit Bhatia
    https://thepoweraddict.com
  • Verified answer
    k16744 Profile Picture
    16 on at

    Dear Sir Hardit Bhatia,

    Thanks for help.

    KUDOS!!!

  • Verified answer
    PowerAddict Profile Picture
    7,316 Most Valuable Professional on at
    @k16744

    Glad I could help! Good luck with the rest of your app! Feel free to reach out in case of any questions!

    Please accept the reply that helped you as the solution so others can find the solution easily. Also, please consider giving kudos (thumbs up) for any and every reply that helped you!

    Thanks,
    Hardit Bhatia
    The Power Addict
    https://thepoweraddict.com

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 387

#2
timl Profile Picture

timl 340 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 301

Last 30 days Overall leaderboard