Available question text
Convert a date like "20th Oct 2052" to "YYYY-MM-DD" by parsing the three parts, stripping the day's ordinal suffix, mapping the three-letter month to its two-digit number, and zero-padding day and month; input dates are guaranteed valid.
Related questions
Continue with questions that share topics or the same question type.
- Convert Date Format
Coding
- Convert Date to Binary
Coding
- Date Range Generator
Coding
- Find Most-Viewed Product by Date
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1507. Reformat Date
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source