How do I report stock acquisition date for stock transferred from a qualified employee retirement plan when the stock is sold or gifted?

When stock is acquired over a 30+ year period in a qualified employee retirement plan and then distributed to a taxable account, how is the acquisition date determined?