convert string dates to Date object