I made a purchase online for a business expense for which the date of order at the top of the invoice was December 30/2017, and I supplied my credit card information on this date. However, my card was not charged until the order was shipped. The shipment took place on January 1/2018 and that is the date of transaction that shows at the bottom of the invoice.
For tax purposes, would I report this expense for the year 2017 (date of order), or the year 2018 (date of transaction)?