This article will demonstrate built-in as well as custom AngularJS Filters with examples on Plunker Editor.
format and timezone are optional. Angular provides number of predefined localizable formats -
'longDate'
'MMMM d, y'
'mediumDate'
'MMM d, y'
'shortDate' equals to 'M/d/yy'
'shortDate'
'M/d/yy'
'mediumTime' equals to 'h:mm:ss a'
'mediumTime'
'h:mm:ss a'
'shortTime' equals to 'h:mm a'
'shortTime'
'h:mm a'
The default format is mediumDate if not specified.
The json filter is used for debugging purpose and prints the JavaScript object as JSON string
spacing is optional and used for indentation purpose. Its default value is 2.
[ { id : '2' } , { id : '1' } ] | orderBy : 'id'
Azure in 24 Days