Declaring


let dtDate = new Date(); 
let dtDate = new Date(value);
let dtDate = new Date(datestring);
let dtDate = new Date(year, month [,day [,hour [,minutes [,seconds [,milliseconds]]]]]);

let dtDate = new Date(2019, 11, 24, 10);
let dtDate = new Date("2020-03-21");
let dtDate = new Date("2020-06");
let dtDate = new Date("2020");
let dtDate = new Date("03/25/2020"); // always include leading spaces
let dtDate = new Date("Mar 25 2020");
let dtDate = new Date("25 Mar 2020"); // month and day can be in any order




© 2020 Better Solutions Limited. All Rights Reserved. © 2020 Better Solutions Limited TopPrevNext