It requires the issuing of Letters Patent by the monarch not an Act of Parliament.
Charles is Duke of Cornwall in England, Prince of Wales in Wales, and Duke of Rothesay in Scotland, as the eldest son and heir to the throne.