JSFiddle - React, Tailwind, and code Playground
JavaScript
function convertjsondate(datetoconvert){
var MyDate_String_Value = datetoconvert
var value = new Date
(
parseInt(MyDate_String_Value.replace(/(^.*\()|([+-].*$)/g, ''))
);
var dat = value.getDate() +
1 +
"/" +
value.getMonth() +
"/" +
value.getFullYear() +
" " +
value.getHours() +
":" +
value.getMinutes() +
":" +
value.getSeconds();
alert(dat);
return dat;
}
convertjsondate("/Date(1300002222222)/");