Year end change

The company is being restructured with a new year end. (From October 31 to April 30 for example.) How can I change the year end for the company without losing previous data