You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to set custom invalid dates on the calendar on ngOnChanges with the custom function isInvalidDate, the code does not work because the date format is set with class property.
Hi,
When I try to set custom invalid dates on the calendar on ngOnChanges with the custom function isInvalidDate, the code does not work because the date format is set with class property.
this.dateFormat = 'DD/MM/YYYY';
...
...
...
this.daterangepickerOptions.settings.isInvalidDate = function(date) { const formatted = date.format(this.dateFormat); return ['25/11/2018'].indexOf(formatted) > -1; };
When I use this.format I'm getting 018-11-25T00:00:00+01:00
Otherwise if i use date.format('DD/MM/YYYY') then works as expected.
BR,
The text was updated successfully, but these errors were encountered: