JSFiddle - React, Tailwind, and code Playground
HTML
<input type='text' id='expiryDT' style='width:200px;margin-left:15px;' value='24-06-2013 23:20:20' readonly='readonly'>
JavaScript
var expTime = String(document.getElementById("expiryDT").value);
alert(expTime);
var year = expTime.match(/\d\d\d\d/)[0];
var month = expTime.match(/-(\d\d)-/)[1] - 1;
var day = expTime.match(/^\d\d/)[0];
var hour = expTime.match(/\s\d\d/)[0];
var minute = expTime.match(/:(\d\d):/)[1];
var second = expTime.match(/\d\d$/)[0];
expTime = new Date(year, month, day, hour, minute, second);
alert(expTime);