Added weekly mode to datepicker