Date and Time

screenshot-20

here i import the date time module to be able to do what i want then i assigned now to the function date.now() so it will print today’s date in another form yy/mm/dd

screenshot-21

here i am printing each section by itself

screenshot-22

now i am trying to change the date-time format to mm/dd/yyyy using the character % to be able to do that.

screenshot-23

after changing the date format now i am changing the time format using the same method by importing the time module and by printing the exact time.

screenshot-24

here is a short way to change the date and time format using the print statement in a different by placing 6(%) in a quote and % isolated and placing the date and time in the format that i want.

today i am trying to print date and  time in a nice format using python.