diosney / angular-bootstrap-datetimepicker-directive

A wrapper directive around the bootstrap-datetimepicker component.
MIT License
69 stars 50 forks source link

defaultDate option is not working #34

Open lghiur opened 7 years ago

lghiur commented 7 years ago

Hello,

I'm trying to display a default date when the input is first time displayed, but apparently that option is not taken into consideration.

<input type="text" class="form-control input-sm" datetimepicker ng-model="date.startDate" datetimepicker-options="{ defaultDate: '11/1/2013', format:'M/D/YYYY h:mm a' }" placeholder="...">

expected result: the input should show '11/1/2013' value actual behavior: the input shows '...'

Can you please advise @diosney, maybe I'm doing something wrong.

Thank you, Laurentiu

atalis commented 5 years ago

Hi, have you ever figured out how to set the default date?