Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Datepicker marks valid content invalid when using custom format #2446

Closed
smuellerus opened this issue Jul 11, 2014 · 3 comments
Closed

Datepicker marks valid content invalid when using custom format #2446

smuellerus opened this issue Jul 11, 2014 · 3 comments

Comments

@smuellerus
Copy link

When using a custom format like this:

$scope.format = 'dd.MM.yyyy';

.. it will mark a valid manually inputted date as invalid, for example:

22.07.2014

If you select the same date in Datepicker, it will be accepted. I noticed that if you manually enter

02.01.2014

into the field, it accidentally navigates to Feb 1 2014 even though this date means Jan 2 2014.

I am waiting for a fix - thanks in advance!

@coryrwest
Copy link

I am also experiencing this issue. While not a showstopper it would be nice if the validation worked correctly.

@dpluna
Copy link

dpluna commented Dec 18, 2014

+1

@jmayday
Copy link

jmayday commented Feb 10, 2015

I'm just reviewing some datepicker issues as I also have some and found this ticket. I have to agree that date parsing is somehow broken on datepicker, but to be honest I can't get this particular date of "02.01.2014" parsed as Feb 1 2014 (I entered manually here http://angular-ui.github.io/bootstrap/#/datepicker). It's parsed correctly as "Thursday, January 2, 2014"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants