isLeapYear Method

Class: Date

Description

This method returns a Boolean value that indicates whether the Date object represents a date in a leap year.

Syntax

dateObject.isLeapYear()

Parameters

None

 

Returns

True, if the date occurs in a leap year.

False, if the date does not occur in a leap year.

When Became Available

Profile v7.0

Example

type RecordCIF cif = Db.getRecord("CIF","ACN=:ACN")

type Date date = cif.dob               // declare Date object

if date.isLeapYear() write "Born in a leap year"

 

* Variable ACN must be defined prior to the getRecord statement.