var DynamicTimeFormat = (function () {
function DynamicTimeFormat() { }
DynamicTimeFormat.prototype.Show = function () {
var a = new Date();
(document.getElementById('Display')).value = a.getDate() + "/" + a.getMonth() + 1 + "/" + a.getFullYear();
};
DynamicTimeFormat.prototype.ShowShortDate = function () {
var a = new Date();
(document.getElementById('Display')).value = a.toLocaleDateString();
};
DynamicTimeFormat.prototype.ShowLongDate = function () {
var a = new Date();
(document.getElementById('Display')).value = a.toLocaleString();
};
DynamicTimeFormat.prototype.ShowUTCDateTime = function () {
var a = new Date();
(document.getElementById('Display')).value = a.toUTCString();
};
return DynamicTimeFormat;
})();
window.onload = function () {
var obj = new DynamicTimeFormat();
var objnormal = document.getElementById("rdonormal");
var objshort = document.getElementById("rdoshort");
var objlong = document.getElementById("rdolong");
var objutc = document.getElementById("rdoutc");
objnormal.onclick = function () {
obj.Show();
};
objshort.onclick = function () {
obj.ShowShortDate();
};
objlong.onclick = function () {
obj.ShowLongDate();
};
objutc.onclick = function () {
obj.ShowUTCDateTime();
};
};
//@ sourceMappingURL=app.js.map |