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 11 Next »

The date.extractDay() API returns the day portion of a date or timestamp.

Parameters


  • Length (optional)
  • Decimals (optional)

Return Value


Numeric day value of a date or timestamp.

RPG Equivalent


EXTRCT

Examples


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

return num;
// 25

 

 

 

  • No labels