I want to do something like this:
<c:set var="strDate" value="<fmt:formatDate value='${obj.dateIn}' pattern='ddMMyyyy'/>"/>
to obtain the date as (formatted) string and assign it to a variable for later use but it isn’t working, any ideas on how to do it in jsp-jstl?
The only way I find around it is to create a “fake” getter for the object java class that outputs the desired date as a String usign SimpleDateFormat.format(..) but me thinks it’s not very orthodox and want to leave the underlying classes alone.
the
varattribute is: