Angularjs, how to display DateTime in cshtml

前端 未结 2 1918
野的像风
野的像风 2021-01-22 01:16

I wrote a piece of code for getting a list of record from db and put them in $scope.records.

var app = angular.module(\'MyApp\', []);
app.controller(\'MyAppContr         


        
2条回答
  •  说谎
    说谎 (楼主)
    2021-01-22 01:48

    try with date filter

    {{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}
    

    or

    {{record.SubmitDate.replace('/Date(','').replace(')/','') | date:'yyyy-MM-dd HH:mm:ss Z'}}
    

提交回复
热议问题