I am using Oracle appserver from jdeveloper 10.1.3.3
My
jsp has a license object with a reference to a java.util.Date object (effectiveDate) The following line of code gives me "Effective Date: Sat Jan 01 00:00:00 PST 2005"
I am trying to format the license date to display the date in "yyyy-MM-dd" format but the following all return an empty
string.
<fmt:formatDate type='both' pattern='yyyy-MM-dd' var='${license.effectiveDate}' />
or
<fmt:formatDate type='both' pattern='yyyy-MM-dd' value='${license.effectiveDate}' />
or
<fmt:formatDate value='${license.effectiveDate}' pattern='yyyy-MM-dd' />