Change date format for correct ordering