Deductions & credits

The gift is effective when the money leaves your control.  You can put a check in the mail on 12/31 and that will count as the date the gift was made, unless the check is post-dated to 2023.  In that case the money is still in your control even if you put the physical check in the mail, so the gift would not count as a 2022 gift.