You are reading a single comment by @MaBe and its replies. Click here to read the full conversation.
  • @allObjects: wow - great stuff - looks like you coded your own date.js and more ;-)

    my intention is to code a small and simple helper to get a human readable date/time

    a little change for a shorter the length checker:

    //var HH = this.getHours().toString();
    //HH = HH.length > 1 ? HH : '0' + HH;
    var HH = ("0"+this.getHours().toString()).slice(-­2);
    
About

Avatar for MaBe @MaBe started