Javascript Date toIsoStringNoHyphensColonsMiliseconds(days)

Description

Javascript Date toIsoStringNoHyphensColonsMiliseconds(days)

Date.prototype.toIsoStringNoHyphensColonsMiliseconds = function(days) {
    var dat = new Date(this.valueOf());
    var isoDate = dat.toISOString();
    var noSymbolsIsoDate = isoDate.replace(/\:/g,'').replace(/-/g,'').replace('.000','');
 return noSymbolsIsoDate;
}



PreviousNext

Related