Move date object definition up so both declaration blocks can use it