For Example:
var dateStr = "21-May-2014";
I want the above to be into a valid Date Object.
Like, var strConvt = new Date(dateStr);
For Example:
var dateStr = "21-May-2014";
I want the above to be into a valid Date Object.
Like, var strConvt = new Date(dateStr);
You need a simple parsing function like: