Date and Time EMT111

In this part, we use datetime to show the date and time. This will tell us the date, time and year. We use the code datetime.now which will tell use the current date and time on the next slide. Next, we use the code now.year, now.day, and now.month so when we print the code, we will get the current day, month and year for an end result. Now, we use a different operator to show the month, day, and year. We use %s as a placeholder. So we use it to as placements and we put in parentheses the code now.year, now.day, and now.month and we also want to tell the time so we use the code now.hour,now.mintues, and now.second. The end result is the current time and date.