I am getting date from server in the below format.
"2017-07-10T20:51:13.000Z".
But when i am going to change the date format in "dd/MM/yyyy" format it is automatically add one more day.
Please check this plunkr.
var app = angular.module('plunker', []);
app.controller('MainCtrl', function($scope) {
$scope.date = '2017-07-10T20:51:13.000Z';
});
<!DOCTYPE html>
<html ng-app="plunker">
<head>
<meta charset="utf-8" />
<title>AngularJS Plunker</title>
<script>document.write('<base href="' + document.location + '" />');</script>
<link rel="stylesheet" href="style.css" />
<script data-require="[email protected]" src="http://code.angularjs.org/1.2.14/angular.js" data-semver="1.2.14"></script>
<script src="app.js"></script>
</head>
<body ng-controller="MainCtrl">
<p ng-bind="date | date:'MM/dd/yyyy'"></p>
</body>
</html>
My actual date is 10th July But my result i'm getting 11th July Please help me how can I resolve this issue.