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 / How do I calculate the...
Power Apps
Unanswered

How do I calculate the number of days in a month depending on the month chosen?

(0) ShareShare
ReportReport
Posted on by 212

I'm trying to create a variable that holds the number of days in any given month. This app will ideally be used into the future. So I want to be able to write something that I won't have to maintain (go in and change the variable over and over again throughout the months and years). Is there a function that grabs the amount of days in a month? 

 

Thank you,

Categories:
I have the same question (0)
  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at

    I don't know if there is an easier way, there always is, but this is what I come up with. 

    Day(DateAdd(DateAdd(Today(),1,Months),-Day(Today()),Days))

    Adding a Month, then Subtracting the current date days, and getting the day leftover.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard