Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 8 of 9 An application requires different date formats to be converted into one common date format. implement the function transform _ date _

Question 8 of 9
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 WYYDDMM, 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: Y YYP DDP MM, YYYY/MM/DD, or MM-DD-YYYY, should be included in the returned list.
For example, transform_date_format(["2010/02/20","2016 p 19p12","71-18-2012","20181224","20130720"]) should return the list ["20102002","20161912","20121811"].
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Focus On Geodatabases In ArcGIS Pro

Authors: David W. Allen

1st Edition

1589484452, 978-1589484450

More Books

Students also viewed these Databases questions