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's click event
console.log("Normal date " + $scope.currentItem.OpenDate);
The console shows the following date
Normal date Fri May 01 2015 00:00:00 GMT-0400 (Eastern Daylight Time)
Here's 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
is not getting saved to Firebase, the rest of the data is saving properly. What am I missing?