显示DatePart一次然后只在对象数组中显示

时间:2017-01-20 06:42:00

标签: javascript jquery arrays node.js

我有以下按日期分组的DataSet。

[ '2017-01-12',
[ { completedAt: Fri Jan 13 2017 06:32:04 GMT+0500 (Pakistan Standard Time),
   Min: 658,
    name: 'tariq',
     startedAt: Thu Jan 12 2017 19:33:40 GMT+0500 (Pakistan Standard Time),
     },
  { completedAt: Thu Jan 12 2017 19:30:28 GMT+0500 (Pakistan Standard Time),
  Min: 1,
  name: 'tariq',
  startedAt: Thu Jan 12 2017 19:29:06 GMT+0500 (Pakistan Standard Time),
   },
{ completedAt: Thu Jan 12 2017 18:12:58 GMT+0500 (Pakistan Standard Time),
  Min: 0,
  name: 'tariq',
  startedAt: Thu Jan 12 2017 18:12:55 GMT+0500 (Pakistan Standard Time),
  },
{ completedAt: Thu Jan 12 2017 18:11:14 GMT+0500 (Pakistan Standard Time),
  Min: 688,
  name: 'tariq',
  startedAt: Thu Jan 12 2017 06:42:46 GMT+0500 (Pakistan Standard Time),
   } ] ]

我想在我的视图中只显示一次日期,然后是该日期唯一的时间部分。这是我想要的意见

0 个答案:

没有答案