bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Datepicker confused with day/month for de_DE locale

Open smuellerus opened this issue 12 years ago • 1 comments

I am using Datepicker, and it's working great so far. The only issue I am having is that when you enter the date in the field by hand / directly, Datepicker swaps the day and the month. I am using de_DE as my Angular locale.

My format is: datepicker-popup="dd.MM.yyyy" Picking April 13 works great. The field shows: 13.04.2014 When I enter "13.04.2014" manually, Datepicker marks it as invalid. When I enter "12.04.2014" manually, Datepicker marks December 4, 2014 on its UI, so it mixes up month and day.

image

It looks to me that this is a bug.

Thanks!

smuellerus avatar Apr 08 '14 20:04 smuellerus

@smuellerus Thx for reporting. Duplicate of #1289. Next version will support a date parser that will solve these kind of issues. See #1874.

bekos avatar Apr 09 '14 17:04 bekos