convert dates to date objects