...
Parameters
- Length(Optional)
- Decimals(Optional)
Return Value
The number of months in a date or timestamp
Example
Code Block | ||
---|---|---|
| ||
pjs.define("date", { type: 'date', initValue: '2017-05-01'}) pjs.define("num", { type: "zoned", length: 7, decimals: 2}) num = date.extractMonth(); return num; //05 |
RPG Equivalent
EXTRACTEXTRCT