RE: Tax Losses/GainsIts contract date/date of execution of the order, not day of settlement. You can sell stock all the way up to Friday 29th June at 4:00 PM/4:10 PM and still take the gain/loss.