date.extractDay()

date.extractDay()

Description

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

Parameters

  1. Length (optional) - Number of digits to keep in the integer portion of the result. If the value has more digits, the leftmost digits are dropped.

  2. Decimals (optional) - Number of decimal positions to keep in the result.

Return Value

The numeric day value of the date or timestamp.

Example

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

RPG Equivalent

EXTRCT


Related Pages