0

Usually code like as:

html

 <p class="small-grey-text float-left">
     {{ product.date-created |  date:'MMMM dd, yyyy ' }} 
 </p>

json

[{"date-created": 1475798400 }]

This is must look as October 07, 2016

Result

January 01, 1970

George Kagan
  • 5,913
  • 8
  • 46
  • 50
  • Possible duplicate of [AngularJS UnixTime to DateTime Format with date filter failed](http://stackoverflow.com/questions/25534721/angularjs-unixtime-to-datetime-format-with-date-filter-failed) – JayChase Oct 30 '16 at 12:14

2 Answers2

1

It looks like you are having the same problem as in this thread. The date pipe format is correct you need to multiply out the date by 1000.

Community
  • 1
  • 1
JayChase
  • 11,174
  • 2
  • 43
  • 52
0

date-created or dateCreated is word of element for JS.

Let me that is like with working - date_created or datecreated