Implemented extractDate.