javascript - datetime from stripe being formatted with angularjs -
so stripe giving me 1374030547
date string.
when use {{ mydatevar | date: 'mediumdata'}}
in angular
it's returning jan 16, 1970
rails able take same date string , return 2013-07-16 accurate date.
so doing wrong angular here?
the date string needs in millis, if have value 1374030547000, should return today's date. fiddle demonstrating this.
function ctrl($scope) { $scope.mytime = "1374030547000"; }
Comments
Post a Comment