Date and Time

In today’s lab, we’re learning how to use the “datetime” function as an advanced way of understanding Strings and Console Outputs. In this lab, you’ll see how I use the function to accurately point out the specific time of the month, day, hour, minute, and second.

Here are my lab results:

The Datetime Library:

D&T1

D&T1A

Getting the Current Date and Time:

D&T2

D&T2A

Extracting Information:

D&T3

D&T3A

Hot Date:

D&T4

D&T4A

Pretty Time:

DT5

DT5A

Grand Finale:

DT6

DT6A