angular-strap icon indicating copy to clipboard operation
angular-strap copied to clipboard

Datepicker doesn't accept zero-less dates

Open smuellerus opened this issue 12 years ago • 6 comments

Datepicker does not accept input dates like "1.7.2014" with a format of 'dd.MM.yyyy'.

Also, how can I get rid of the leading zero in the month view - all days < 10 are prefixed with a 0.

Thanks.

smuellerus avatar Jul 14 '14 12:07 smuellerus

+1

Zacharias3690 avatar Feb 02 '15 14:02 Zacharias3690

+1

joaoborsoi avatar Jul 28 '15 11:07 joaoborsoi

I think the parser should accept all variations. If you put yy it should accept 4 digit years when typing. Iff you put yyyy it should accept 2 digit years also. It should be flexible for people who wants to type instead of use the picker.

joaoborsoi avatar Jul 28 '15 11:07 joaoborsoi

+1

Something similar to ExtJS's "altFormats" feature would be really nice. It allows you to configure the datepicker to accept as many formats as you want, for e.g. you can set the display format to "dd/MM/yyyy", and specify alternate input formats like ddMMyyyy, dd.MM.yyyy, dd-MM-yyyy, etc.

sistemanick avatar Aug 04 '15 01:08 sistemanick

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 26 '19 05:01 stale[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar May 05 '19 20:05 lock[bot]