We first use datetime to print the date and time in a nice format. we then create a variable called ‘now’ and store the result of datetime.now() in it. we then print the value of ‘now’. we extract each information month, day, year by printing each of them. we finally combined the nice format of the time and date.