This doesn't work, however. I also looked at <fmt:formatDate>, but it looks as though that only works with the java.util.Date data type. Can someone give me some direction?
[ March 15, 2006: Message edited by: Craig Dixon ]
Originally posted by Craig Dixon:
I'm pulling a date out of a SQL Server database to display on a JSP, but the format isn't terribly user friendly.
Dates don't have inherent formats. What you are seeing is the result of a simple toString() conversion.
I think <fmt:parseDate> will do the job
<fmt:parseDate> is used to convert strings to dates. So, no.
What you need is <fmt:formatDate>.
but it looks as though that only works with the java.util.Date data type.
A java.sql.Date is a java.util.Date.