When to enter a Dec 2022 sale, paid by cheque but cheque is deposit in January 2023

Hello

I need to enter a Dec 2022 sale and paid by cheque on Dec 23, 2022 but it was deposited on Jan 12, 2023.

Do I enter the payment on the date the cheque was make, or do I enter it on the date the cheque was deposited?

Thank you in advance.

Luc