using angularfire, add date firebase database. try code. in html file use date input
<input type="date" ng-model="user.tododate">
and angularfire function
var list = $firebasearray(ref); list.$add({ date : $scope.user.inputdate })
kbut when using
console.log($scope.user.inputdate)
hole date format (mon apr 04 2016 00:00:00 gmt+0200 (paris, madrid (heure dâété))).
how can th jj/mm/aaaa format of date.
Comments
Post a Comment