【发布时间】:2016-09-15 21:04:43
【问题描述】:
我从 api 获取日期和时间。我想更改日期和时间格式。
我越来越喜欢“2016-05-12”,“07:17:35”。
更改格式,例如 2016 年 5 月 12 日晚上 7:30:
<table class="table">
<thead>
<tr>
<th>Time</th>
<th>Place</th>
</tr>
</thead>
<tbody ng-repeat="l in dataget">
<tr>
<td>{{l['time']}}</td>
<td>{{l['place']}}</td>
</tr>
</tbody>
</table>
【问题讨论】:
-
你有这样
"2016-05-12","07:17:35",或"2016-05-12 07:17:35"这样的约会吗?? -
我是这样的 ["2016-05-12","07:17:35"]
标签: javascript jquery angularjs html