• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

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>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint