The function below calculates the day of the week for any given date. It currently is not returning the correct day.
The function is not working correctly. Fix it to return the correct day. <strong>Test cases: 26/07/1969 = Saturday
Also please update the function to print the day and month as follows.
26/07/1969 = Saturday, 26 July 1969 || 31/12/1999 = Friday, 31 December 1999.
thank you so very much
The function is not working correctly. Fix it to return the correct day. <strong>Test cases: 26/07/1969 = Saturday
Also please update the function to print the day and month as follows.
26/07/1969 = Saturday, 26 July 1969 || 31/12/1999 = Friday, 31 December 1999.
thank you so very much