case1 : var date = “04-20-20”;
new Date(date)
Output:
Mon Apr 20 2020 00:00:00 GMT+0530 (India Standard Time)
case2 : var date = “04:20:20”;
new Date(date)
output:
Invalid Date
can anyone help me?
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
case1 : var date = “04-20-20”;
new Date(date)
Output:
Mon Apr 20 2020 00:00:00 GMT+0530 (India Standard Time)
case2 : var date = “04:20:20”;
new Date(date)
output:
Invalid Date
can anyone help me?