Monthly Archives: November 2013

Datepicker from UI-Bootstrap with non-US format

When I was trying to use a date format like “dd.MM.yyyy” in a datepicker element from the UI-Bootstrap library then I came across the problem that I couldn’t easily add a date by manual input.

I fixed that by writing a directive, which handles the input differently on that date format. I admit that it looks more like a hack but it works pretty good. Hopefully this functionality will be supported soon! Additionally the popup now closes automatically on “Enter” or “Tab”, which I prefer instead of tabbing through each date-field.

 

Posted in AngularJS | Tagged , | 10 Comments