Method Date.getNameOfMonth
Get the name of a month
-
Syntax
String Date.getNameOfMonth([ Boolean utc ])
Returns the name of the month. Ifutcis true the universal time is used; otherwise the local time is used. -
Parameters
Boolean utc(Optional)- Set to true to use UTC.
- Return value The name of the month
-
Examples
- // To get the name of the month of 31st of October 2007
// Create date var d = new Date(2007,9,31); // Output is 'October' d.getNameOfMonth();
-
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.
This function has dependencies and will not work stand-alone. Use the download button above instead of copy/paste.
