Name
IsLeapYear
Synopsis
IsLeapYear(year
)
Returns True
if the specified year is a leap year
or False
if it isn’t. It is important to
note that IsLeapYear( )
expects a year (e.g.,
2000) as opposed to a date. Example:
<CFOUTPUT> #Year(Now( ))# <CFIF IsLeapYear(Year(Now( )))><B>is</B><CFELSE><B>isn't</B></CFIF> a leap year. </CFOUTPUT>
Get Programming ColdFusion now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.