We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://stackblitz.com/edit/angular-taetoz?file=src%2Fapp%2Fapp.component.ts
import { Component } from '@angular/core'; @Component({ selector: 'nz-demo-date-picker-format', template: ` <nz-date-picker [nzFormat]="dateFormat" [nzDisabledDate]="disabledDate"></nz-date-picker> `, styles: [ ` nz-date-picker ` ] }) export class NzDemoDatePickerFormatComponent { dateFormat = 'yyyy/MM/dd'; disabledDate = (time: Date): boolean => { return new Date(time) < new Date("2024-09-16") || new Date(time) > new Date("2024-09-30"); }; }
The deadline of September 30th can be selected
The component did not respond after clicking on the deadline of September 30th
The text was updated successfully, but these errors were encountered:
I can only use it this way now, but it's not beautiful enough
disabledDate = (time: Date): boolean => { const endTimeDateOnly = new Date(this.endTime); endTimeDateOnly.setHours(0, 0, 0, 0); const endTimeEndOfDay = new Date(endTimeDateOnly.getTime() + 24 * 60 * 60 * 1000 - 1); return new Date(time) < new Date(this.startTime) || new Date(time) > endTimeEndOfDay; };
Sorry, something went wrong.
same problem
wenqi73
No branches or pull requests
Reproduction link
https://stackblitz.com/edit/angular-taetoz?file=src%2Fapp%2Fapp.component.ts
Steps to reproduce
What is expected?
The deadline of September 30th can be selected
What is actually happening?
The component did not respond after clicking on the deadline of September 30th
The text was updated successfully, but these errors were encountered: