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

Date.IsLeapYear

Owen Duncan|Last Updated: 4/19/2018

About

Returns a logical value indicating whether the year portion of a DateTime value is a leap year.

Date.IsLeapYear(dateTime as nullable datetime) as nullable logical  

Arguments

ArgumentDescription
dateTimeThe DateTime to check.

Examples

Date.IsLeapYear(DateTime.FromText("2011-01-01")) equals false

Date.IsLeapYear(DateTime.FromText("2012-01-01")) equals true  
© 2018 Microsoft