Age Group Determination

my birthday is 10/7/1959

in 2024 i will age up to the 65-69 age group.

I remember something about in yards events you can swim in the age group that you will be at the end of year on 12/31/xx or something like that and it was different for meters.

can someone help clarify :)   

Thanks in advance.