2

ng2-datetime-picker shows 6 columns, so days are invalid. Saturday is under Sunday, check image.

ng2-datetime-picker image my code looks like this:

<input date-format="DD-MM-YY" ng2-datetime-picker date-only="true" 
   class="" [(ngModel)]="newDate" (valueChanged)="dateChange($event)" />

I tried to increase with off outer div and width of this input. won't help. Couldn't find this problem elsewhere.

jazza1000
  • 4,099
  • 3
  • 44
  • 65
OttO
  • 101
  • 6

1 Answers1

3
    .ng2-datetime-picker {
        width: 235px;
    }

    .days {
        width: 100% !important;
    }

this helped, but still don't know what caused this problem.

OttO
  • 101
  • 6