Closed javidsapand closed 6 years ago
@fingerpich or anyone else has any idea about this issue?
please make a demo in https://stackblitz.com/
Here is the demo https://stackblitz.com/edit/jalai-datepicker-max-min
use the following code
onStartDateChange() {
this.endDatePickerConfig = {...this.endDatePickerConfig, min: moment.from(this.testForm.controls.startDate.value,'fa', 'YYYY-MM-DD')}
}
`this.testForm.controls.startDate.value makes a string like '1387-2-31' and its not a standard way to make a jalali date.
I am using [dpDayPicker] directive in angular 5 reactive forms, I have two date pickers one for start date and another for end date, I want to set the selected start date value as minimum end date value for end date picker, but setting the min property for end date picker config doesn't effect. here is the code: