I'm currently work on a datepicker from angular-ui, I try to save it into firebase, does anyone know how to do that?
I have the following code:
<div class="row">
<div class="col-md-6">
<p class="input-group">
<input type="text" class="form-control" uib-datepicker-popup="{{format}}" ng-model="dt" is-open="popup1.opened" min-date="minDate" max-date="maxDate" datepicker-options="dateOptions" date-disabled="disabled(date, mode)" ng-required="true" close-text="Close" alt-input-formats="altInputFormats" />
<span class="input-group-btn">
<button type="button" class="btn btn-default" ng-click="open1()"><i class="glyphicon glyphicon-calendar"></i></button>
</span>
</p>
</div>
and in controller
$scope.dt = new Date();
at pushing the database
dt: dt,
the system shows an error. Does someone know how push the date from datepicker into firebase? Thanks in advance.