Question: An application requires different date formats to be converted into one common date format. Implement the function transform _ date _ format which accepts a

An application requires different date formats to be converted into one common date format.
Implement the function transform_date_format which accepts a list of dates as strings, and returns a new list of strings that represents dates in the format of YYYYDDMM, where YYYY, MM, and DD are numbers representing year, month, and day, respectively. All incoming dates will be valid dates, but only those in one of the following formats: YYYYP DDp MM, YYYY/MM/DD, or MM-DD-YYYY, should be included in the returned list.
For example, transform_date_format(["2010/02/20","2016p 19p 12","7118-2012","20181224","20130720"]) should return the list ["20102002","20161912","20121811"].
 An application requires different date formats to be converted into one

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!