currentDate=now(); selectedMonth = createDate(request.year,request.month,1); daysInMonth=daysInMonth(selectedMonth); firstDayOfWeek=dayOfWeek(selectedMonth)-1; weekdayShort=$.rbKey('calendar.weekdayshort'); weekdayLong=$.rbKey('calendar.weekdaylong'); monthShort=$.rbKey('calendar.monthshort'); monthLong=$.rbKey('calendar.monthlong'); dateLong = "#listGetAt(monthLong,request.month,",")# #request.year#"; dateShort = "#listGetAt(monthShort,request.month,",")# #request.year#"; previousMonth = request.month-1; nextMonth = request.month+1; nextYear = request.year; previousYear=request.year; if (previousMonth lte 0) {previousMonth=12;previousYear=previousYear-1;} if (nextMonth gt 12) {nextMonth=1;nextYear=nextYear+1;}