Does 1099 income belong in 2017 or 2018?

I wrote a check to an independent contractor in December 2017, but he deposited that check in 2018. When I send him the 2017 1099-MISC form, should I include it as part of the total or does that belong in a 2018 1099-MISC? And along the same lines, to I deduct that amount as a business expense on my Schedule C in 2017 or in 2018?