Using the latest version of angular -ui-bootstrap and the date picker directive to make my date picker, but what I would like to know is if you have the choice to choose two different formats for the text box.
<input type="text" class="form-control" ng-model="vm.startDate" uib-datepicker-popup="M/d/yyyy" datepicker-options="vm.dateOptions" close-text="Close" is-open="vm.opened1" placeholder="Start Date" ng-required="false" min-date="vm.minDate" max-date="vm.maxDate" init-date="vm.getCalendarInitDate()" />
uib-datepicker-popup = "M / d / yyyy" is great for dates like 9/5/2015, but what about the one who puts 9/5/15? This does not work.
Ideally, I would like both of them to be acceptable.
Any ideas?
source share