"3rd Mar 1987". The parts are separated by single spaces.
The day is a number from 1 to 31 followed by st, nd, rd or th (1st, 2nd, 3rd, 4th, …, 11th, …, 21st, …). The month is one of Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec.
Convert text to the YYYY-MM-DD format: a four-digit year, a two-digit month and a two-digit day joined by dashes.text="9th Apr 2017" → '2017-04-09'
April is the fourth month, so both month and day get a leading zero: 2017-04-09.
text="31st Dec 1999" → '1999-12-31'
The last day of 1999: 1999-12-31.
text="22nd Feb 2100" → '2100-02-22'
text has the form <day> <month> <year>text="9th Apr 2017"
'2017-04-09'
Run checks the first 3 tests in your browser. Submit checks all 112 tests on the server, hidden ones included.