HTML
<input type="datetime-local" onblur="window.setValue(this.value)" />
JS
window.setValue = function (val) {
console.log(val);
}
The output above is 1991-03-02T00:01
, how to get the exact value? Like 03/02/1991 12:01 AM
.