Hello, I have an input field that uses a bootstrap datepicker for choosing a date:
<input name="birthdate" type="text" datepicker-popup="dd-MMMM-yyyy" ng-model="birthdate" is-open="dateconfig.opened" /> When a user chooses a date using the datepicker, it sets the text of the input quite correctly (e.g. "15 March 2014"). However, if the user enters a date manually (e.g. "05/11/2013"), then the datepicker is updated with the date in the undesirable format mm/dd/yyyy (i.e. 11th May, when it ought to be 5th November). Is there a simple way to make manual entry in the text field be interpreted in the format dd/mm/yyyy ? I'm looking for a general purpose solution, since the user may enter a variety of formats (e.g. "dd mmmm yyyy", "d-mm-yyyy", etc). Thanks, Paul. -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
