finalized date handling (tested)