changed dates to datetimes