How do you handle checks? - eviltoast

Specifically with regards to checks you’ve written that are cashed months later, do you keep it in YNAB with the date it was written… or move it to the day it was cashed?