Dates & Times


Dates are declared using the Date constructor
This is an object
The month parameter is zero based

var myDate = new Date(2020,11,01);   //this is December 
var myDate = new Date("1 July 2020");
var myTodaysDate = new Date();

var myDate = new Date(); 
var myHour = myDate.getHours();

Methods

toUTCString
getHours


Datejs library

datejs.com











© 2018 Better Solutions Limited. All Rights Reserved. © 2018 Better Solutions Limited Top