Angularjs

Format Date In Angular Js

Posted by Weston Ganger on August 20, 2014

One quick way to format your date in AngularJS you can use the following simple filter

{{yourDate | date:'longDate'}}

longDate is a format of date that you can choose, the angular docs list all of the date formats available and how to use custom dates as well. https://docs.angularjs.org/api/ng/filter/date


Posted in Angular and Tagged with angularjs date format 


Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts