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

The date.getDaysInMonth() method returns the number of days of a month in a date.

 

Return Value

The number of days in the month of the date

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

return num;
// num is 31 (January has 31 days)
  • No labels