diff --git a/README.md b/README.md
index 5d9301f3..834925e0 100644
--- a/README.md
+++ b/README.md
@@ -80,6 +80,13 @@ and [browse our demo code here](./demo/src/app).
>These options are booleans
+### isCustomDate
+
+>(function) A function that is passed each date in the calendars before they are displayed, and may return a string or array of CSS class names to apply to that date's calendar cell
+
+### isInvalidDate
+>(function) A function that is passed each date in the two calendars before they are displayed, and may return true or false to indicate whether that date should be available for selection or not.
+
### minDate, maxDate
>To set the minimal and maximal date, these options are a moment date
diff --git a/demo/src/app/single-datepicker/single-datepicker.component.html b/demo/src/app/single-datepicker/single-datepicker.component.html
index 3bf5fbb3..beab564e 100644
--- a/demo/src/app/single-datepicker/single-datepicker.component.html
+++ b/demo/src/app/single-datepicker/single-datepicker.component.html
@@ -1,19 +1,47 @@
-
<input type="text"
ngxDaterangepickerMd
- [(ngModel)]="selected" [singleDatePicker]="true" [autoApply]="true"/>
+ [isInvalidDate]="isInvalidDate"
+ [isCustomDate]="isCustomDate"
+ [locale]="{{ '{' }}format: 'DD/MM/YYYY', firstDay: 1}"
+ [(ngModel)]="selected"
+ [singleDatePicker]="true"
+ [autoApply]="true"/>
+
+
+ export class SingleDatepickerComponent {{ '{' }}
+ selected: any;
+
+ constructor() {{ '{' }}
+ this.alwaysShowCalendars = true;
+ }
+ isInvalidDate(date) {{ '{' }}
+ return date.weekday() === 0;
+ }
+ isCustomDate(date) {{ '{' }}
+ return (
+ date.weekday() === 0 ||
+ date.weekday() === 6
+ ) ? 'mycustomdate' : false;
+ }