0

Date Conversion

Unsolved
Data Wrangling

Difficulty: 1 | Problem written by zeyad_omar
Sometimes in data science projects, engineers need to convert a string to a date format to be able to do some operations on the data in the correct format.

Given a string in the format "Day/Month/Year",vconvert it to the format "Day-Month-Year".

Sample Input:
<class 'float'>
text: 1/1/2021

Expected Output:
<class 'int'>
1-1-2021

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Atque quas molestias veniam nam est, quas facere amet dolor sequi blanditiis corrupti.

Quisquam obcaecati molestiae praesentium dolor. Voluptatem omnis doloremque alias voluptatibus unde eius eum, quos esse deleniti est accusantium dolor adipisci consequatur eum quod repudiandae ipsa, delectus ratione labore qui molestias iste, soluta ut sit, sapiente deserunt itaque neque. Debitis quam illum labore nemo enim id obcaecati voluptates ipsam explicabo maxime. Excepturi sit officiis eos nesciunt itaque cupiditate blanditiis quos pariatur, vel at repellat corrupti quo perspiciatis dicta odit voluptatem consectetur, eaque voluptatum illo dignissimos maxime deserunt?

Perspiciatis dolore rerum placeat accusamus similique earum, aliquam provident totam similique?

This is a premium feature.
To access this and other such features, click on upgrade below.

Ready.

Input Test Case

Please enter only one test case at a time
numpy has been already imported as np (import numpy as np)