PP.Date.getLastDateOfMonth(date): Date;
date. Date. Date.
The getLastDateOfMonth static method returns the month last day date.
The method returns an object of the Date type.
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: