Skip to main content
Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.


Member since Dec 11, 2008

Recent Blog Comments By James

  • Demonstration Of Date Object Formatting Using Date Prototyping

    Posted on Jan 3, 2008 at 12:08 AM

    Hey, by the way there is what I would consider to be a "bug" in this. getMonth() is a zero based function, so months like January come back as 0 and December comes back as 11. It can be fixed like this: "m": this.getMonth()+1, "mm": ((this.getMonth()+1).toString().length == 1) ? ("0" + this.getMo... read more »