Skip to content

Instantly share code, notes, and snippets.

@tkc
Created September 6, 2015 19:27
Show Gist options
  • Save tkc/5c0e3afc44959b469b6a to your computer and use it in GitHub Desktop.
Save tkc/5c0e3afc44959b469b6a to your computer and use it in GitHub Desktop.
$http.get(url).success(function(data){
$scope.data = data; // get row data
$scope.data.mydatefield = new Date($scope.data.mydatefield); // convert filed to date
});
sample code
http://stackoverflow.com/questions/30537886/error-ngmodeldatefmt-expected-2015-05-29t190616-693209z-to-be-a-date-a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment