Date & Time

In this lab we were dealing with strings and console inputs once again but this time with a little more twist to it.

 

DATE 1DATE 2

In this first screenshot on the top left i was told to just proceed ahead. now in the second screen shot i was told to create a variable and then print that variable.

 

 

 

 

DATE 3DATE 4

In the Third screenshot i had to print month and day additionally like i had done to year. Moving up to the 4th screenshot i had print today`s date in the proper format month/day/year.

 

 

DATE 5DATE 6

In the 5th screenshot i had to do the same as the the earlier screenshot but this time put time in the proper format. and for the last screenshot i had to print both date and time in a single row instead of separated and that’s my lab assignment for Date & Time.