1507. Reformat Date
Given a date string in the form Day Month Year, where: - Day is in the set {"1st", "2nd", "3rd", "4th", ..., "30th", "31st"}. - Month is in the set {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}. - Year is in the range [1900, 2100]. Convert the date string to the format YYYY-MM-DD, where: - YYYY denotes the 4 digit year. - MM denotes the 2 digit month.
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start