Tagged: Formattare una data

Formattare una data 0

Formattare una data

[sourcecode language=”javascript”] <script type="text/javascript"> <!– function DateFmt() { this.dateMarkers = { d:[‘getDate’,function(v) { return ("0"+v).substr(-2,2)}], m:[‘getMonth’,function(v) { return ("0"+v).substr(-2,2)}], n:[‘getMonth’,function(v) { var mthNames = ["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"]; return mthNames[v]; }], w:[‘getDay’,function(v) { var dayNames =...