Assume stock ABC
I’d try the Capital gains report. Expand time frame to all dates or as needed, customize securities and accounts, sort by security rather than short- long-term. Review the report for the desired bought date (could be multiple sales using part of same lot).