Struts 1 Date Format Tag

David picture David · Jun 18, 2010 · Viewed 14.2k times · Source

Is there any tag in Struts1 tag library which can format a java.util.Date object?

In Struts 2, I can use the s:date tag, but I can't find the Struts 1 equivalent.

Answer

User picture User · Aug 15, 2011

Can't you use format attribute? Something like:

bean:write name=xxxx  format="MMMM-dd-yyyy"