0

I need a date format like this.

11 November ,2015

I have tried using fmt tag.

<fmt:formatDate value="${Attr['DATE']}"  type="both" dateStyle="long" />

the output is November 11, 2015 12:00:00 AM.

How can i do that? Please help me. Can i use any kind of pattern attribute?

Jayababu
  • 1,641
  • 1
  • 14
  • 30
  • 1
    I doubt this is a duplicate of the mentioned question. There they doesn't know at all how to do it, this question is about custom patterns inside `formatDate`. – Koshinae Nov 11 '15 at 15:27

1 Answers1

1

Hint: fmt:formatDate has a pattern attribute too.

Try <fmt:formatDate pattern="dd M ,yyyy" value="${Attr['DATE']}" /> or <fmt:formatDate type="date" dateStyle="long" value="${Attr['DATE']}" />

Koshinae
  • 2,240
  • 2
  • 30
  • 40