Cleanest and most Pythonic way to get tomorrow's date?

linkmaster03 picture linkmaster03 · Oct 2, 2009 · Viewed 76.2k times · Source

What is the cleanest and most Pythonic way to get tomorrow's date? There must be a better way than to add one to the day, handle days at the end of the month, etc.

Answer

Kamil Szot picture Kamil Szot · Oct 2, 2009

datetime.date.today() + datetime.timedelta(days=1) should do the trick