JSFiddle - React, Tailwind, and code Playground

HTML

<div id="thedate" />
<div id="thedate2" />

JavaScript

var value = "\/Date(1325224800000)\/";

var date;

    if (Object.prototype.toString.call(value) === '[object Date]')
        date = value;
    else
        date = new Date(parseInt(value.substr(6))); // json type

    var curr_date = date.getDate();

    if (curr_date < 10)
        curr_date = '0' + curr_date;

    var curr_month = date.getMonth();
    curr_month++;

    if (curr_month < 10)
        curr_month = '0' + curr_month;

    var curr_year = date.getFullYear();

    var datestring = curr_month + "/" + curr_date + "/" + curr_year;

    if (curr_year <= 1)
        datestring = '&nbsp;';
debugger;
$('#thedate').text(datestring);

    if (Object.prototype.toString.call(value) === '[object Date]')
        date = value;
    else
        date = new Date(parseInt(value.substr(6))); // json type

    var curr_date = date.getUTCDate();

    if (curr_date < 10)
        curr_date = '0' + curr_date;

    var curr_month = date.getUTCMonth();
    curr_month++;

    if (curr_month < 10)
        curr_month = '0' + curr_month;

    var curr_year = date.getUTCFullYear();

    var datestring = curr_month + "/" + curr_date + "/" + curr_year;

    if (curr_year <= 1)
        datestring = '&nbsp;';
debugger;
$('#thedate2').text(datestring);