Use ruby's str[regexp] method to extract date.