Date.getLastDateOfMonth

Syntax

PP.Date.getLastDateOfMonth(date): Date;

Parameters

date. Date. Date.

Description

The getLastDateOfMonth static method returns the month last day date.

Comments

The method returns an object of the Date type.

Example

To execute the example, add a link to PP.js scenario file to HTML page.

// Create the current date
date = new Date();
// Get month last day date
newDate = PP.Date.getLastDateOfMonth(date);
console.log(newDate);

After executing the example the month last day date is obtained.

See also:

PP