I was tried with date filter on html file
{{'2014/06/07 10:10:45' | date:'MM/dd/yyyy'}}
But it dont work with me.
I was tried with date filter on html file
{{'2014/06/07 10:10:45' | date:'MM/dd/yyyy'}}
But it dont work with me.
It looks like the date string you are passing is not a valid format. According to angular’s docs date
filter accepts needs a valid date format (date object , milliseconds or ISO 8601 datetime) .
You can try by creating a date object in your controller
$scope.myDate = new Date('2014/06/07 10:10:45');
{{myDate | date:'MM/dd/yyyy'}}