Todor Spasov wrote:
Hi Jacek,
You can use in form-widget something like this:
<field name="someDate">
<display description="${bsh:
import java.text.SimpleDateFormat;
import java.util.Date;
SimpleDateFormat formater = new SimpleDateFormat("EEE
dd/MM", locale);
Date currentDate = new Date(someDate.getTime());
return formater.format(currentDate);
}"/>
</field>
The only thing that you must change is the date format in the SimpleDateTime
constructor.
Hope that helps,
Todor
On Fri, 2009-02-06 at 08:38 -0800, Jacek Wagner wrote:
All,
All the dates in ofbiz are stored and presented as SQL type DATE.
They always look something like 2008-11-08
In my project I have to present them in the calendar format such as
11/08/2008.
Is there any way in form-widget to change the field date format?
Jacek
Todor, You made my day!!! Jacek