Versions Compared

Key

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


Note
titleContent Freeze

As of July 25th, 2023, there is a content freeze on this page.

The date.extractYear() method returns the month portion of a date or timestamp

Parameters
  1. Length(Optional)
  2. Decimals(Optional)

Return Value

The number of months in a date or timestamp

Example

...


Code Block
languagejavascript
pjs.define("date", { type: 'date', initValue: '2017-05-01'})
pjs.define("num", { type: "zoned", length: 7, decimals: 2}) 
   
num = date.extractMonth();
 
 
return num;
//05

...