Timmy and Tommy won’t buy them on Sunday, so you must sell turnips before the following Sunday on any other day (you can’t sell them in the drop-off box, though.)
Like in Animal Crossings before, these turnips go bad after a week, so after you invest, you have a whole week to sell them.