Hi, I have a string variable with the date in the following format

Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input long date
20170927
20170928
20170929
20171002
20171003
20171004
20171005
20171006
20171007
20171009
20171010
20171011
20171012
26032018
26042018
26052018
26062018
26082019
26092019
27012018
27022018
27022019
27032018
27042018
27062018
20122018
21022018
21022019
11032018
1062018
1082019
1102019
2012018
2022018
2022019
end
I intend to extract the month, year, and day from it. Though I successfully extracted the year information using the following command, however, I still can't seem to figure out how to extract the day and month.

moss date, regex match(^"(201[4-9]+)") max(1)