The date.isLeapYear() method returns a boolean depending determines if the year in the portion of a date field is a leap year or not.
Return Value
True if it is a leap year else falseBoolean value of true if leap year; otherwise a Boolean value of false is returned.
Example
Code Block | ||
---|---|---|
| ||
pjs.define("date", { type: 'date', initValue: '2016-12-01'}) console.log(date.isLeapYear()); // outputs true |