Link to home
Start Free TrialLog in
Avatar of onaled777
onaled777Flag for United States of America

asked on

Converting from long to Date in a jsp for fmt:formateDate

For the code snippet below the value note.referencedOn comes back as a long.

fmt:formatDate is expecting a Date so it throws an error.

How do i modify to get rid of that error.

<td><fmt:formatDate value="${note.referencedOn}" pattern="MM-dd-yyyy"/></td>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of rrz
rrz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial