parsing the dates into dateTime