
how to display current time when using datetimepiker in struts2
I set displayFormat="dd/MM/yyyy HH:mm:ss" but it doesn't work. Display value is always : 19/11/2010 00:00:00 .Here is my code:

Hi Friend,
Please visit the following links:
http://roseindia.net/struts/struts2/date/struts-2-datetimepicker.shtml
http://roseindia.net/struts/struts2/struts2uitags/datetimepicker-tag.shtml
Thanks

Thank you very much for replying me. But it seems, it also doesn't work. Here is my code :
public String execute() throws Exception {
ngay_laphd =new Date("Jan 12, 1984 11:21:30 AM");
return SUCCESS;
}
sx:datetimepicker name="ngaylaphd" id="ngaylaphd" value="%{ngay_laphd}" displayFormat="dd/MM/yyyy HH:mm:ss"
required="true"
and the result is always is : 12/01/1984 00:00:00
Tks very much :)
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.