Answers for "python datetime add 1 year"

7

python date add days

date_1 = datetime.datetime.strptime(start_date, "%m/%d/%y")

end_date = date_1 + datetime.timedelta(days=10)
Posted by: Guest on May-12-2021
0

python datetime add minutes

updated_time = date_time_obj + timedelta(minutes=30)
print(updated_time)
Posted by: Guest on April-20-2021

Python Answers by Framework

Browse Popular Code Answers by Language