I need to do convert 09/29/2017 in 2017/09/29. And for this i used this line of code
$scope.dateAsString = $filter('date')($scope.curdate, "yyyy-MM-dd");
But unable to convert it.Can anyone tell me where i am wrong?One more thing it's working for new Date().
Any help will be appreciated.Thanks in advance.