I have a model with a java.util.Date attribute that will show a current date time as default value on form at first time, I'm using CompoundPropertyModel bind this model with form ,
and when render on html I want it show with format "dd/MM/yyyy HH:mm"
but now It alway show with format "dd/MM/yyyy"
 
How can I format it?
 
I try Custom Converter but I'm so confusing that in my case I'm going to convert String to Date, or Date to String, or this is not matter of converting type to type, and if so how can I format this output string? Do I have to re-model Date type to String type? (I hope not to do so..)
 
Many thanks in advance.


Yahoo! Photos
Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.

Reply via email to