I have this date string \"2013:05:12 11:41:31\"
I tried:
var strDate = \"2013:05:12 11:41:31\"; var dateParts = strDate.split(\":\"); var date = new Da
You might consider using moment.js for this.
var strDate = "2013:05:12 11:41:31"; var date = moment(strDate, "YYYY:MM:DD HH:mm:ss").toDate();