Actually you need this formatting in input field. But according to current functionality it will open calendar for you to choose the date. So there are 2 options :
1. Either create it as integer field and limit length to 4.
2. Create a drop down of years manually and set here.