Refactored AgendaSlot to an object literal that takes care of date conversion