Here is a plunk demonstrating the problem. plunky
I have chosen the 'M!/d!' format. My control just requires the day and month so the year is not entered in the text box. If you erase the contents of the first textbox and enter a date in M!/d! format (e.g. 1/1) it is inferred as 1 Jan 1900. I want it to be inferred as 1 Jan 2016 (or whatever the currently selected year is) Is there a way to achieve this?
$scope.formats = ['dd-MMMM-yyyy', 'yyyy/MM/dd', 'dd.MM.yyyy', 'shortDate', 'M!/d!'];
$scope.format = $scope.formats[4];
We have to use 'M!/d!' forma5t. There's no escaping it.
Thanks! :)