Set the date properly