What is a capacitor used for in a current other than just collecting energy?

phase shift between current and voltage; as a filter to pass only AC through (dc wont go thru); and as a filter to pass certain frequences better than other.