NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.87k stars 3.94k forks source link

typing the date manually and then press enter #8803

Open ahmedrefaat1 opened 1 month ago

ahmedrefaat1 commented 1 month ago

Reproduction link

https://stackblitz.com/run?file=src%2Fapp%2Fapp.component.ts

Steps to reproduce

typing the date manually and then press enter In date picker While nzFormat="yyyy-MM-dd" And I want to not show the time But the value after press enter Is 2024 Sept 27 00 00 00 The time is all zero But when you select it from datepicker The value is 2024 Sept 27 11:08:07 I want the value of date and time in my code like the select when typing it and then press.enter Is there anyway for solve it

What is expected?

I want the value of date and time in my code like the select when typing it and then press.enter Is there anyway for solve it

What is actually happening?

The value after press enter Is 2024 Sept 27 00 00 00 The time value is all zero.diffrent.than when you select it

Environment Info
ng-zorro-antd 18.1.1
Browser Chrome and all.browser

If there is a way to make the value of time be like.when you select date And I want to show only in the datepicker date yy mm.dd But when recive value in code.i want time.with it