Table of contents
TOC
Collapse the table of content
Expand the table of content

Date.DaysInMonth

Owen Duncan|Last Updated: 4/19/2018

About

Returns the number of days in the month from a DateTime value.

Date.DaysInMonth(dateTime as datetime) as nullable number  

Arguments

ArgumentDescription
dateTimeThe DateTime to check against.

Example

Date.DaysInMonth(DateTime.FromText("2012-03-01")) equals 31  
© 2018 Microsoft