Leetcode 1507. Reformat Date
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.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.