JSFiddle - React, Tailwind, and code Playground

HTML

<div id="dates"></div>

CSS

#dates{
    background-color:lightblue;
    padding:10px;

}

#dates #date{
    background-color:#333;
    color:#fff;
}

#dates #month{

    background-color:#999;
}

#dates div{
    display:inline-block;
    border-bottom:1px solid #f00;
    width:50%;
    padding:5px 0px;
}

JavaScript

months = ["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"];
timestamp = "1374267600";
var jsDate = new Date(timestamp*1000);

 $('#dates').append('<div id="date">' + jsDate.toDateString() + '</div><div id="month">' + months[jsDate.getMonth()] + '</div>');