Versions Compared

Key

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

...

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

Return Value

The number of years in a date or timestamp

Example

 


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


return num;
//2017

...