Dojo Date fiddle
This JSFiddle is configured and ready to use for testing the Dojo framework.
HTML
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/dojo/1.9.1/dijit/themes/claro/claro.css">
<button data-dojo-type="dijit/form/Button">Test</button>
JavaScript
require(["dojo/date/locale"], function(locale) {
var now = new Date();
var date = locale.format(now, {
datePattern: "dd.MM.yy HH:mm",
locale: "de-de",
selector: "date"
});
alert("date : " + date);
});