Given a date string date in the format "Day Month Year", convert and return the date reformatted as "YYYY-MM-DD".
The input components are defined as follows:
Day is in the format {"1st", "2nd", "3rd", "4th", ..., "31st"}.
Month is in the format {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}.
Year is in the range
The converted format requires the year to be a
Constraints:
The given dates are guaranteed to be valid, so no error handling is necessary.
Given a date string date in the format "Day Month Year", convert and return the date reformatted as "YYYY-MM-DD".
The input components are defined as follows:
Day is in the format {"1st", "2nd", "3rd", "4th", ..., "31st"}.
Month is in the format {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}.
Year is in the range
The converted format requires the year to be a
Constraints:
The given dates are guaranteed to be valid, so no error handling is necessary.