A getYearForWeekNo method has been added to the Date object. Any date object will be able to return the current year.
The function can be use like this:
The function can be use like this:
var date = new Date(); date.getYearForWeekNo();It would return
2011.