Struts2 JQuery Datepicker not working properly

2019-08-03 09:56发布

I am using a datepicker in form to send particular date and time to my action class. But When I submit my form the datepicker value received at action is

Wed Jan 29 00:00:00 IST 2014

means, the date is going correct but the time not. How can I solve the problem???

My Form :

<form theme="simple" action="saveDetailsRecBackupConf" method="post" name="viewConfiguration">
        <sj:datepicker theme="simple" id="addedon" name="addedon" timepicker="true" timepickerShowSecond="true" timepickerFormat="HH:mm:ss" ></sj:datepicker>           

        <input type="submit" value="SAVE" name="SUBMIT" id="save" />
</form>

0条回答
登录 后发表回答