question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DatePicker doesn't recognize manual date input when using nzFormat

See original GitHub issue

Reproduction link

https://stackblitz.com/edit/angular-a8d35n

Steps to reproduce

Add DatePicker component and set nzFormat=“dd.MM.yyyy”.

<nz-date-picker [(ngModel)]="date" nzFormat="dd.MM.yyyy"></nz-date-picker>

Manual input works only if date and month are same. For example, if we type 04.04.1995 it works, but 04.05.1995 is not working.

What is expected?

After writing string date, DatePicker changes date in the model.

What is actually happening?

Nothing happens

Environment Info
ng-zorro-antd 8.1.2
Browser Chrome 76

Default format working fine

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
valerio-lucantoniocommented, Jan 6, 2020

Guys any update?

5reactions
soulasvalentincommented, Sep 17, 2019

Hello! Are there any updates on this? Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

nz-datepicker doesn't accept manual input? - Stack Overflow
If you are using this datepicker then enter the value according to date format(nz-Format)(MANUALLY). <nz-form-label [nzSpan]="5" ...
Read more >
DatePicker | NG-ZORRO - Ant Design
Angular DatePicker Component, To select or input a date.By clicking the input box, ... Use the nzDisabledDate property to limit the start and...
Read more >
Input widget with Date format - Reset doesn't work with partial ...
I see that the field detects the data entered only after completely entering all parts of the date (OnChange event doesn't get triggered...
Read more >
Solved: Date picker: Typing in the date (date format mm.dd...
I'm building a Power App with the Power App app in Teams and have a problem with the date picker. Property AllowTextInput is...
Read more >
datepicker properties
Datepicker PropertiesThe behavior and appearance of the date picker elements are ... I've done myself as below To see if the check box...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found