1

I have the following code:

<td class = "detail_labels"> Date Added: </td>
<td>{{post.issueDate | date: M/d/yyyy}}</td>

But it is not showing up as 7/12/2015, it is showing as this: Jul 12, 2015

Please help fix this bug!

2
  • 1
    Hmph... shouldn't you put that M/d/yyyy in quotes? Commented Jul 13, 2015 at 4:46
  • OMG this is what happens after you program for 7 hours straight on a Sunday, my eyes hurt and I can't think straight Commented Jul 13, 2015 at 4:48

1 Answer 1

4

You should add ' to your filter:

<td>{{post.issueDate | date: 'M/d/yyyy'}}</td>

See documentation for date filter on Angular documentation for more information

Sign up to request clarification or add additional context in comments.

1 Comment

It's always so thrilling to post answers/comments on these new questions ;)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.