Feedback
Add DateTime.DaysInMonth property
- Status
- Fixed
- Fixed in
- v26.8.5
- Source discussion
- https://forum.objo.dev/d/897-datetimelastdayofmonth/3
- Last updated
- 2026-08-22
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Add a read-only DateTime.DaysInMonth property that returns the number of days in the receiver's month and year, including the correct result for leap years. This removes the need for applications to repeat calendar logic in extension methods and makes the operation discoverable alongside the existing DateTime component properties.