Back
You can use the below format to convert the string into date:
var mydate = new Date('2014-04-03');console.log(mydate.toDateString());
var mydate = new Date('2014-04-03');
console.log(mydate.toDateString());
I hope this will help.
Want to become a Java Expert? Join Java Certification now!!
Want to know more about Java? Watch this video on Java Course | Java Tutorial for Beginners:
31k questions
32.8k answers
501 comments
693 users