Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Prodentim Probiotics Specially Designed For The Health Of Your Teeth And Gums

Instant Grammar Checker - Correct all grammar errors and enhance your writing

Teach Your Child To Read

Powerful WordPress hosting for WordPress professionals

Disclosure: My content contains affiliate links.

31,041 questions

40,764 answers

573 users

How to get tomorrow date in Python

2 Answers

0 votes
from datetime import date
from datetime import timedelta
 
 
def tomorrow():
    return date.today() + timedelta(days=1)
 
print(tomorrow())
 
 
'''
run:
 
2018-11-15
 
'''

 





answered Nov 14, 2018 by avibootz
0 votes
from datetime import date
from datetime import timedelta
 
 
tomorrow = date.today() + timedelta(1)

print(tomorrow.strftime('%m-%d-%Y'))
 
 
'''
run:
 
11-15-2018
 
'''

 





answered Nov 14, 2018 by avibootz

Related questions

1 answer 56 views
56 views asked Mar 11, 2022 by avibootz
1 answer 99 views
1 answer 77 views
77 views asked Aug 26, 2020 by avibootz
1 answer 115 views
1 answer 94 views
94 views asked Sep 18, 2018 by avibootz
...