fetrarij / ngx-daterangepicker-material

Pure Angular 2+ date range picker with material design theme, a demo here:
https://fetrarij.github.io/ngx-daterangepicker-material/
MIT License
249 stars 255 forks source link

Can't set minimum time #142

Open AnnaShk opened 5 years ago

AnnaShk commented 5 years ago

Hi,

I'm using version 2.1.1 of ngx-daterangepicker-material with angular 6 and have an issue with setup [minDate] for singleDatePicker.

Component:

...
ngOnInit() {   
      this.minimumDate = moment();
  }
...

HTML:

      <input type="text" class="form-control" id="dateInputMain" 
            matInput
            ngxDaterangepickerMd    
            [minDate]="minimumDate"                 
            [singleDatePicker]="true"
            [timePicker]="true"
            [timePickerIncrement]="1"
            [(ngModel)]="date"      
            (datesUpdated)="onDateChange($event)"
        />

As a result when I open the input the minimum date is set, but time is empty: image

Could you please take a look at that?

DoanVanThuong commented 5 years ago

same issue