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:
Simplly if you want to output like "Jan 30, 2017 4:31:20 PM" then follow to simple step
step1- Declare following variable in js controller
$scope.current_time = new Date();
step2- display in html page like
{{current_time | date:'medium'}}