Change convertToDate method to return a DateTime instance