Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

The date.isLeapYear() method determines if the year portion of a date field is a leap year.

 

Return Value

Boolean value of true if leap year; otherwise a Boolean value of false is returned.

Example
pjs.define("date", { type: 'date', initValue: '2016-12-01'})

console.log(date.isLeapYear());  // outputs true
  • No labels