Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var abc='2222-12-12'
- var date1 = new Date(abc)
- console.log("date1",date1); // "date1" Thu Dec 12 2222 05:30:00 GMT+0530 (India Standard Time)
- var abc='22222-12-12'
- var date2 = new Date(abc)
- console.log("date2",date2); //"date2" Thu Dec 12 22222 00:00:00 GMT+0530 (India Standard Time)
- var abc='22222-12-12'
- var date3 = new Date(abc)
- console.log("date3",date3.getUTCDate(abc)); //"date3" 11
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement