PP.Date.getDaysInMonth(date): Number;
date. Date. Date.
The getDaysInMonth static method returns the number of days in the specified date month.
To execute the example, add a link to PP.js scenario file to HTML page.
// Create the current date date = new Date(); // Get the number of days days= PP.Date.getDaysInMonth(date); console.log(days);
After executing the example the number of days in the current month is obtained.
See also: