extract date from detail