Deductions & credits

Hello, I hope someone can help. I have this exact same scenario.  The medical mission trip was taken in 1/2024.  The trip was paid for in 2023.  However, when I enter the info in the donation/charity section, it asks for travel dates.  When I enter 1/2024, it flags as an error and will not let me continue.  How can I get the program to allow me to deduct the expenses paid for 2023 for the trip that was in 2024?  Thank you so much in advance!