JSFiddle - React, Tailwind, and code Playground

HTML

<div ng:app ng:controller="Scoper">
    In: {{s}}  <br />
    Angular: {{dateToShow}} <br />
</div>

JavaScript

function Scoper($scope,$filter) {
    $scope.s = "2012-10-16T17:57:28.556094Z";
    var dateObj = new Date($scope.s);
    $scope.dateToShow = $filter('date')(dateObj,'yyyy-MM-dd');
    console.log($scope.dateToShow);
}