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 / Excel Days360() functi...
Power Apps
Answered

Excel Days360() function equivalent in PowerApps

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Can anyone help me? I need the equivalent of this Excel function in PowerApps.

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Try this

    DateDiff(Date1,Date2,Days)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    The Days360 function in Excel is equivalent to DateDiff function in PowerApps.

     

    The standard formula of DateDiff function as below:

    DateDiff( StartDateTime, EndDateTime [, Units ] )

    Note: The type of Units to add: MillisecondsSecondsMinutesHoursDaysMonthsQuarters, or Years. If not specified, Days are used.

     

    Please consider take a try with above function, then check if the issue is solved.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    DateDiff() doesn't work because days360() considers 30 days for every month. 

     

    Example: from december to january as december has 31 days will give difference in the calculation compared to Excel.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    Use DateDiff(Date1, Date2, Months) * 30
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Yeah, you are right. The DateDiff function would not consider 30 days for every month. If you would like the DataDiff function to consider 30 days for every month within your app, I afraid that there is no way to achieve your needs in PowerApps currently.

     

    If you would like this feature to be added in PowerApps, please consider submit an idea to PowerApps Ideas Forum:

    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas

     

    As an alternative solution, you could consider take a try with the following workaround:

    If(
     Month(StartDate) = 1 || Month(StartDate) = 3 || Month(StartDate) = 5 || Month(StartDate) = 7 || Month(StartDate) = 8 || Month(StartDate) = 10 || Month(StartDate) = 12,
     DateDiff(StartDate, EndDate, Days) - 1, // remove the difference -- 1 day
     DateDiff(StartDate, EndDate, Days)
    )

    Note: Detect if current month has 31 days or 30 days, if it has 31 days, minus 1 day from the DateDiff(...) result.

     

    Please consider take a try with above solution, check if the issue is solved.

     

    Best regards,

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard