Question: java 2h 57m left Given a date string in the format Day Month Year, where: Java 7 1 > import java.io.*; - 10 Day is

 java 2h 57m left Given a date string in the format
java

2h 57m left Given a date string in the format Day Month Year, where: Java 7 1 > import java.io.*; - 10 Day is in the set('1st, 2nd, 3rd", "4th", "Sth", 6th 7th, 8th, 9th,..., "29th": "30th, 31st"). Month is in the set ("Jan", "Feb, "Mar, 'Apr', "May". JunJul", "Aug": "Sep", "Oct", "Nov", "Dec"). Year is in the inclusive range /1900, 2100]. 11 class Result { * Complete the Convert the date string to the format YYYY-MM-DD, where: * The function + The function YYYY denotes the 4 digit year. MM denotes the 2 digit month. DD denotes the 2 digit day. public static Li // Write your cc For example: 1st Mar 1984 - 1984-03-01 2nd Feb 2013 2013-02-02 4th Apr 1900-1900-04-04 27 > public class Solution Function Description Complete the function reformatDate in the editor below. The function must return an array of converted date strings in the order presented. reformatDate has the following parameter(s): dates[dates[O]....dates(n-11): an array of date strings in the format Day Month Year Constraints The values of Day, Month, and Year are restricted to the value ranges specified above. The given dates are guaranteed to be valid, so no error handling is necessary Test Results Custom In MacBook

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!