Equinox Online Help - Language Reference - A to Z
Leapyear |
|
---|---|
Applies to | |
Syntax | Leapyear(YearExpression) |
Action | [Function] Determines whether a specified year is a leap year. |
Scope | Usable 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. |
Category | Date 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) |