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

The Date.getDaysInMonth() API returns the number of days in a specific month of a year. 

Parameters
  1. Year
  2. Index of Month (January = 0, December = 11)

Return Value

The number of days in that month

Example
pjs.define("num", { type: "zoned", length: 7, decimals: 2}) 
  
num = Date.getDaysInMonth(2016, 1); 

return num;
// num is now 29 (February 2016 has 29 days)
  • No labels