I got a view in angularjs and I\'m just trying to display the current date(formatted). I thought something like {{Date.now() | date:\'yyyy-MM-dd\'}}
{{Date.now() | date:\'yyyy-MM-dd\'}}
Here is the sample of your answer: http://plnkr.co/edit/MKugkgCSpdZFefSeDRi7?p=preview
Date Of Birth: {{DateOfBirth | date:"dd-MM-yyyy"}}
and then in the controller:
$scope.DateOfBirth = new Date();