do you know a way to “navigate” through the date object without writing an own extension?? eg. you have:
var x = new Date();
And then you want to click a button and go a month forward or backwards to get the next/previopus month automatically (with automatically year-change?..Is that possible?
It seems that you just need to look at the methods on the
Date()object.This code will advance the date by one month and it will roll properly to the next year when needed:
You can do similar things for the other properties.
Example: http://jsfiddle.net/jfriend00/qBRgF/