IRA conversion crossing year end.

I made IRA conversion from Traditional to Roth. Withdrawal was made at the end of December 2023, then the check was mailed to another financial institution, which deposited it into Roth account in January 2024. The conversion amount is taxable, but in which year? Are the rules the same for Traditional 401K to Roth IRA conversion?