converted dates to datetime format