Equinox Online Help - Language Reference - A to Z

Home

Leapyear

Applies to
SyntaxLeapyear(YearExpression)
Action[Function] Determines whether a specified year is a leap year.
ScopeUsable anywhere.
Notes

This function examines YearExpression and returns 1 if it is a leap year, or 0 if not. YearExpression may be a date value, or a number.

CategoryDate handling
See Also Years, Year, Day, Dayname, Dayofweek, Dayofyear, Dmy, Dmyadd, Month, MonthName, Months, ServerDateTime, Today, Week, WeekOfYear, WeekStart
Example

This example sets the variable YearDays to the number of days in the year containing EventDate.

YearDays = 365 + Leapyear(EventDate)