0

I'm trying to use ng2-datepicker. But it is opening likeenter image description here

It should open with the current date. Below is my HTML & TS code

<div class="form-group">
    <ng-datepicker [(ngModel)]="date" [options]="options"></ng-datepicker>
</div>

options: DatepickerOptions = {
    displayFormat: 'DD-MMM-YYYY',
    barTitleFormat: 'MMM YYYY',
    dayNamesFormat: 'dd',
    locale: enLocale,
    minDate: new Date(Date.now()),
};
Krishna
  • 1,089
  • 5
  • 24
  • 38

0 Answers0