Home » Javascript » Converting string to date in js

Converting string to date in js

Posted by: admin August 19, 2018 Leave a comment

Questions:

How can I convert a string to date in js?

var st = "date in some format"
var dt = new date();

var dt_st= //st in date format same as dt
Answers: