PP.Date.getDayOfYear(date): Number;
date. Date. Date.
The getDayOfYear static method returns the day number in the year.
Returns day number starting from 0.
To execute the example, add a link to PP.js scenario file to HTML page.
// Create the current date date = new Date(); // Determine day number day= PP.Date.getDayOfYear(date); console.log(day);
After executing the example the current date day number is obtained.
See also: