Converting text-represented dates and times