DatePicker will throw an error when used with nzFormat="b"
Sophia-yolo opened this issue · 3 comments
Reproduction link
https://stackblitz.com/edit/angular-gphznd?file=src%2Fapp%2Fapp.component.ts
Steps to reproduce
- Setting nzFormat to "b".
- Select a date.
What is expected?
Can correctly convert the date format.
What is actually happening?
ERROR
Error: Missing extra locale data for the locale "en". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.
Environment | Info |
---|---|
ng-zorro-antd | 17.2.0 |
Browser | Chrome 120.0.6099.216 |
Greeting @Sophia-yolo
What is the expected outcome when you assign the value 'b' to the nzFormat
property?
@ParsaArvanehPA
Hello, what I want to achieve is that the date picker outputs properly for any character format, but when I format the input b, I find that the date picker does not output properly, it should output "mid." according to the DatePipe syntax or output the character b.
@Sophia-yolo
Did get a workaround for your problem?
I am asking because you closed it; i was just checking the code...