Date and Time

DT1The First page shows how to import datetime in order to be able to perform the other exercises.
DT2

The Second page shows how I inserted the input shown for the program to give me back the actual time and date.

DT3

The Third page shows the date separated in each line. I simply had to print each one in a different line for it to come out like it did on to the box at the right.

DT4

In the Fourth page all I did was to change the format. Instead of (yyyy/mm/dd), I flipped it to show the month first.

DT5

In the Fifth slide, I simply changed the format so the program would print the time and not the date.

DT6And for the last page, number Six, I had to write out the time and date in one line only and made sure the symbols for each one corresponded.

Print this page