如何在Bootstrap模板中格式化日期?

时间:2016-08-06 13:16:17

标签: mysql node.js html5 twitter-bootstrap-3

我正在尝试从数据库列出bootstrap表上的日期。 我的数据库日期值是:

enter image description here

但是在将值重定向到html页面后,它会显示如下。

enter image description here

为什么会这样?

我的HTML代码是

<td style="word-break: break-all;"><%=schedulerList[i].to_date %></td>
<td style="word-break: break-all;">  <%=schedulerList[i].from_date %></td>

但是在上市后它给了我另一种格式。 请帮忙。

1 个答案:

答案 0 :(得分:0)

使用moment.js之类的内容。 Bootstrap主要用于CSS,你必须自己处理格式化的东西......