By using the properties of asymptotically almost periodic solutions, we establish conditions for the existence of a positive asymptotically stable piecewise continuous and almost periodic solution of the logistic equation with almost periodic coefficients and nonfixed times of impulsive action.