Plato on Github
Report Home
filters/date_format.js
Maintainability
86.27
Lines of code
16
Difficulty
4.38
Estimated Errors
0.05
Function weight
By Complexity
By SLOC
'use strict'; /** * @ngdoc filter * @name SnsApp.filter:dateFormat * @function * @description * # dateFormat * Filter in the SnsApp. */ angular.module('SnsApp') .filter('medium', function myDateFormat($filter) { return function(text) { var tempdate = new Date(text.replace(/(.+) (.+)/, "$1T$2Z")); return $filter('date')(tempdate, "medium"); }; });