Investors & landlords

Does it matter that it became worthless on 12/7/2023, rather than during 2024? Should I amend the 2023 returns to claim it, or is it fine to include it in 2024?