Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • something like this jsfiddle.net/LkqTU/27696 . cheers Commented Nov 13, 2015 at 7:28
  • @supercool thanks for the link but it doesn't work. In the link above, you have use common date format (dd/mm/yyyy), whereas in my case, the date value is in json date format /Date(1447261200000)/. I've editted my question to supply more information. Commented Nov 13, 2015 at 8:57
  • try setting self.ReceiptDate=ko.observable(1447261200000); and check it , still it will work . moment will decode to date & format u specified . Commented Nov 13, 2015 at 9:18
  • 2
    Wew, those are some major edits you've done. I've deleted my answer as the edits invalidated it as far as I could see. Commented Nov 13, 2015 at 9:36
  • @supercool yes it still works jsfiddle.net/LkqTU/27697, but in my code it doesn't work. Could you see the update section in the question? Commented Nov 13, 2015 at 9:56