The date.extractDaty() method returns the number of days in a date
Parameters
- Length(Optional)
- Decimals(Optional)
Return Value
The number of days in a date
Example
Code Block | ||
---|---|---|
| ||
pjs.define("date", { type: 'date', initValue: '2017-01-25'})
pjs.define("num", { type: "zoned", length: 7, decimals: 2})
num = date.extractDay();
return num;
//25 |