Question: Consider the string 4 September 1 9 9 6 , 5 : 4 5 PM . answer the following. a . Convert the string into

Consider the string 4 September 1996,5:45 PM. answer the following.
a. Convert the string into date data type.
b. Print the date part of the date as "9/4/1996".
c. Print the weekday of the date in 3 letters, like Mon for Monday.
d. Find and print the weekday of the same date one year later. Print the full weekday name.
e. Determine the number of hours that have passed since the given date till now.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!