我在我的 Angular 7 应用程序中使用 ng2-smart-table, 我在表中使用了猫头鹰日期时间选择器。这些值正在添加到数据库中。
我正在从后端获取表中填充的数组中的值。
但是日期时间值没有显示在框中,它给了我 ">InvalidPipeArgument:"无法将"2019-12-24 13:00:00"转换为管道日期管道的日期"。
我无法共享任何代码,因为这将是我基于办公室的应用程序......
任何帮助将不胜感激...
像这样使用时刻
public date : string = '2019-12-24 13:00:00';
public newDate;
this.newDate = moment(this.date).format('MMM Do YYYY');
比绑定这个.newDate
<h2> {{newDate}}</h2>