Question: Write a method that takes in a String that represents a date in the format MM/DD/YYYY, extract out the month, the day, and the year

Write a method that takes in a String that represents a date in the format MM/DD/YYYY, extract out the month, the day, and the year and return a String that contains the months name, day, and year. Assume the String parameter is always a valid date.

Example

If the parameter is "01/19/1973", the return value is "January 19, 1973".

If the parameter is "11/14/2010", the return value is "November 14, 2010".

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 Databases Questions!