JSFiddle - React, Tailwind, and code Playground

by divyanshu013

HTML

<div ng-app="myApp" ng-controller="myCtrl">
  <span>{{ bill.date | date}}</span>
</div>

JavaScript

angular.module('myApp', [])
  .controller('myCtrl', function($scope) {
    $scope.bill = {
      "date": "2016-12-11 00:00:00.000000",
      "timezone_type": 3,
      "timezone": "UTC"
    };
  })
  .filter('date', function() {
    return function(input) {
      return input.split(' ')[0];
    }
  });