Method Date.getISODay
Return the ISO day number of the week.
-
Syntax
Number Date.getISODay([ Boolean UTC ])
The ISO day number is defined as 1 to 7 for monday through sunday. -
Parameters
Boolean UTC(Optional)- If true then UTC is used; otherwise the local time is used.
- Return value A value between 1 and 7
-
Examples
- To get the day of the 7th of March 2008
// Create date var d = new Date(2008,2,7); // Output is 5 (friday) d.getISODay();
- Related Date.format
-
Download
Source
Unless otherwise noted all code in the JSLab Standard Library is licensed as GPLv3. See http://www.gnu.org/licenses/gpl.html for the entire license.
