How do I properly display the date and time in AngularJS?
The output below shows both the input and the output, with and without the AngularJS date filter:
Have you seen the Writing directives (short version) section of the documentation?
HTML
Date format: Current time is:
JS
function Ctrl2($scope) { $scope.format = 'M/d/yy h:mm:ss a'; }