Source Code:
(back to article)
import datetime # Get the current date and time now = datetime.datetime.now() # Calculate the date and time one week from now one_week_from_now = now + datetime.timedelta(weeks=1) print(one_week_from_now)
Result:
Report an issue