Your code should work as you have it see this fiddle.
You’ll have to make sure your v.Dt
is a proper Date object for it to work though.
{{dt | date:'yyyy-MM-dd HH:mm:ss Z'}}
or if dateFormat is defined in scope as dateFormat=”yyyy-MM-dd HH:mm:ss Z”:
{{dt | date:dateFormat }}
Related Contents:
- How to get the difference of two dates in mm-dd-hh format in Javascript
- Detecting an “invalid date” Date instance in JavaScript
- How do I POST urlencoded form data with $http without jQuery?
- Is the Javascript date object always one day off?
- AngularJS routing without the hash ‘#’
- Recursion in Angular directives
- Get the time difference between two datetimes
- AngularJS passing data to $http.get request
- How to validate date with format “mm/dd/yyyy” in JavaScript?
- How do I format a date in JavaScript?
- AngularJS – Any way for $http.post to send request parameters instead of JSON?
- How to get evaluated attributes inside a custom directive
- AngularJS 1.2 $injector:modulerr
- Set HTTP header for one request
- What is the $$hashKey added to my JSON.stringify result
- `date.setMonth` causes the month to be set too high if `date` is at the end of the month
- AngularJS does not send hidden field value
- javascript to find leap year
- Why does Javascript getYear() return 108?
- Pagination on a list using ng-repeat
- AngularJS: How to run additional code after AngularJS has rendered a template?
- AngularJS – how to get an ngRepeat filtered result reference
- How to filter by object property in angularJS
- password-check directive in angularjs
- How can I make an AngularJS directive to stopPropagation?
- Convert normal date to unix timestamp
- What’s the difference between returning value or Promise.resolve from then()
- How to improve performance of ngRepeat over a huge dataset (angular.js)?
- Export to xls using angularjs
- Print Html template in Angular 2 (ng-print in Angular 2)
- How to Convert any of the 5 Islamic (Hijri) Calendars’ Dates to any of 18 World Calendars without External Libraries or Complex Astronomical Formulas
- Angular.module minification bug
- How can I populate a select dropdown list from a JSON feed with AngularJS?
- How to read response headers in angularjs?
- Using a Relative Path for a Service Call in AngularJS
- How do I get basic auth working in angularjs?
- UI-router interfers with $httpbackend unit test, angular js
- How to make a preselection for a select list generated by AngularJS?
- angularJS display base64 image
- Angular UI-Router more Optional Parameters in one State
- What is the difference between $ionicView.enter and cache:false
- Suites vs Specs Protractor
- How to Convert Persian (Jalali) Dates to other 18 Calendar Dates in Javascript without External Libraries or Complex Astronomical Equations
- random orderBy in AngularJS 1.2 returns ‘infdig’ errors
- How to Create simple drag and Drop in angularjs
- Angular form validation ng-disabled not working
- javascript date + 7 days
- Moment.js – How To Detect Daylight Savings Time And Add One Day
- How to generates dynamically ng-model=”my_{{$index}}” with ng-repeat in AngularJS?
- Mocking and Stubbing with protractor