Search
⌘K

Leetcode 1853. Convert Date Format

Given a date in a human-readable form like "20th Oct 2052", parse and convert it to ISO "YYYY-MM-DD" by stripping ordinal suffixes from the day, mapping month names to numbers, and zero-padding day and month as needed.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.