michael-mcanulty / md-datetimepicker

Datetime picker for angular material.
MIT License
5 stars 2 forks source link

hideTime property not working #6

Open srijai opened 6 years ago

srijai commented 6 years ago

I am trying to use with [hideTime]="true" but it does not hide the time. It actually hides the date and shows only the time. Below is my code. I have set the hideTime boolean to true in my component ts file.

<md-input-container *ngIf="showFromDate"> <input mdInput formControlName="fromDate" [MdDatetimepicker]="fromDate" placeholder="From" maxLength="20"> <button mdSuffix [mdDatetimepickerToggle]="fromDate" [hideTime]="hideTime">
<md-datetimepicker #fromDate [hideTime]="hideTime">