STEP 14: Now that we have a new datetime object, let's pull out the future date and time.

  • Go to and drag Date Format - 12/31/2019 into the bottom of the main function.
  • Change my_date to new_date and change my_datetime to new_datetime.
  • Inside the print statement, also change my_date to new_date.
  • Click Run then click on the Console button to see the new date!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)