changed to a right date format