Created
March 19, 2015 17:13
-
-
Save nickeddy/1a43f34e8fa6ad42e762 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// needs moment.js | |
angular.module('app', []) | |
.filter('smallMoment', function() { | |
return function(data) { | |
return moment(data).format('M/D/YYYY H:mm:ss A'); | |
}; | |
}); | |
// in template: {{ someDate | smallMoment }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment