I am using a Json answer in Laravel 5, where I use the Angular to be able to display this data.
The date in Laravel is returned in 2017-05-17 15:56:46
format. When attempting to use the date
filter on the angle, the same thing continued:
angular.module('app', []);
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script><divng-app="app">
{{ '2017-05-17 15:56:46' | date: 'dd/MM/yyyy' }}
</div>
In case of dates in the above format, how should I do to be able to convert to dd/MM/yyyy
format?