Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

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

Return Value

The number of days in a month

Example

 

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


return num;
//29