JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://rawgithub.com/minagabriel/dtmFRM/master/dtmFRM.js"></script>

JavaScript

var myDateTime = new dtmFRM();

alert(myDateTime.ToString(1375077000000, "dd/MM/yyyy hh:mm:ss ampm"));

alert(myDateTime.ToString(1375077000000,"the year is yyyy and the day is dddd"));

alert(myDateTime.ToString('1/21/2014', "this month is MMMM and the day is dd"));