Changes direction of dates