Convert Date Format

Given a date string in the format "Day Month Year", convert it to the standard "YYYY-MM-DD" format. The specifics are as follows:

  • Day is a string such as "1st", "2nd", "3rd", "21st", "22nd", "2...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: