Date.getDaysInMonth

Syntax

PP.Date.getDaysInMonth(date): Number;

Parameters

date. Date. Date.

Description

The getDaysInMonth static method returns the number of days in the specified date month.

Example

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:

PP