This question already has answers here:
Closed 5 years ago.
For Example:
var dateStr = "21-May-2014";
I want the above to be into a valid Date Object.
Like, var strConvt = new Date(dateStr);