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 6 Current »

Content Freeze

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

The date.extractYear() method returns the year protion of a date or timestamp

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

Return Value

The number of years in a date or timestamp

Example


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


return num;
//2017

RPG Equivalent

EXTRCT

  • No labels