isLeapYear

Determines whether a year is a leap year.

isLeapYear(year) → returns boolean

Argument Reference

year numeric
Required

Examples
Sample code invoking the isLeapYear function

date = now();
isLeapYear = isLeapYear(year(date));
writeOutput(isLeapYear);

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub