It depends primarily on the penalty rules pertaining to the fare type you purchased, the rule of thumb being that the less you paid the less flexible the ticket will be.
It also depends on the attitude of the ticket office people when you ask for the change, but these days there is not a lot of flexibilty shown.