I have a screen with a DATE field (Start date), where the user can enter any date
<label class="item item-input"> <span class="input-label">Start Date</span> <input type="date" ng-model="currentItem.OpenDate"> </label>
I added the following to the save button click event
console.log("Normal date " + $scope.currentItem.OpenDate);
The following date is displayed on the console.
Normal date Fri May 01 2015 00:00:00 GMT-0400 (Eastern Daylight Time)
Here is the push event
$scope.data.accounts.push({ 'AccountName': $scope.currentItem.AccountName, 'StartBalance': $scope.currentItem.StartBalance, 'OpenDate': $scope.currentItem.OpenDate, 'AccountType': $scope.currentItem.AccountType });
HOWEVER, the date $scope.currentItem.OpenDate not saved in Firebase, the rest of the data is saved properly. What am I missing?
source share