returns the week number of the specified date
date | Date|string | the date you want to get the week number of |
number | week number |
var w = myCalendar.getWeekNumber(new Date(2013, 0, 1)); // w => 1
// or
myCalendar.setDateFormat("%Y-%m-%d");
var w = myCalendar.getWeekNumber("2013-01-11"); // t => 2
Back to top