Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


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
Code Block
languagejavascript
pjs.define("date", { type: 'date', initValue: '2016-12-01'})

console.log(date.isLeapYear());  // outputs true