Refactor date parsing in CalendarOps class