refine the date times