get right date format