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

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -