Angularjs Angular未按应有的方式转换unix日期

Angularjs Angular未按应有的方式转换unix日期,angularjs,Angularjs,我从日期中得到了非常奇怪的数据,我就是不明白为什么 <b>{{ (lines.date*1000) | date:"dd-mm-yyyy" }}: </b> 这是输出 11-20-2017: was CREATED Tue Jul 11 2017 from Booking.com: ThaiHome by ThaiHome Staff 11-20-2017: wrote message: This is the message the NEW user writ

我从日期中得到了非常奇怪的数据,我就是不明白为什么

<b>{{ (lines.date*1000) | date:"dd-mm-yyyy" }}: </b>
这是输出

11-20-2017:   was CREATED Tue Jul 11 2017 from Booking.com: ThaiHome by ThaiHome Staff
11-20-2017:   wrote message: This is the message the NEW user writes to manager
11-22-2017:   wrote message: This is the message the NEW user writes to manager
11-22-2017:   wrote message: This is the message the NEW user writes to manager
11-22-2017:   wrote message: This is the message the NEW user writes to manager
11-24-2017:   wrote message: This is the message the NEW user writes to manager
11-24-2017:   wrote message: This is the message the NEW user writes to manager
11-24-2017:   wrote message: This is the message the NEW user writes to manager

为什么我得到的是这些奇怪的日期而不是通常的真实日期?

Small
mm
是以小时为单位的分钟,加上填充(00-59)。对于月份,您可以使用以下选项之一:

  • MMMM
    :一年中的月份(一月至十二月)
  • MMM
    :一年中的月份(一月至十二月)
  • MM
    :年中月份,填充(01-12)
  • M
    :一年中的月份(1-12)

小的
mm
表示以小时为单位的分钟,填充(00-59)。对于月份,您可以使用以下选项之一:

  • MMMM
    :一年中的月份(一月至十二月)
  • MMM
    :一年中的月份(一月至十二月)
  • MM
    :年中月份,填充(01-12)
  • M
    :一年中的月份(1-12)

Noooo真的吗??哈哈哈,该死我花了一个小时的时间想用数学来解决这个问题,哈哈。我需要更好地查看它接受的代币:-)谢谢Prerak:-DHappy的帮助:)真的吗??哈哈哈,该死我花了一个小时的时间想用数学来解决这个问题,哈哈。我需要更好地查看它接受的代币:-)谢谢Prerak:-DHappy的帮助:)
11-20-2017:   was CREATED Tue Jul 11 2017 from Booking.com: ThaiHome by ThaiHome Staff
11-20-2017:   wrote message: This is the message the NEW user writes to manager
11-22-2017:   wrote message: This is the message the NEW user writes to manager
11-22-2017:   wrote message: This is the message the NEW user writes to manager
11-22-2017:   wrote message: This is the message the NEW user writes to manager
11-24-2017:   wrote message: This is the message the NEW user writes to manager
11-24-2017:   wrote message: This is the message the NEW user writes to manager
11-24-2017:   wrote message: This is the message the NEW user writes to manager