changed the date time string to object