UI-GRID - Convert A Cell To Date Format -
is there way in ui-grid convert column long value date string?
is there way todo without having loop through each value?
instead of looping, can add cell template column has date field.
celltemplate:'<div class="ui-grid-cell-contents">{{grid.appscope.showdate(123123123)}}</div>'
and create showdate method in scope
$scope.showdate = function(value) { return new date(value); }
you can format date in showdate.
Comments
Post a Comment