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

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -