Struts2 JQuery Datepicker not working properly

情到浓时终转凉″ 提交于 2019-12-11 12:23:09

问题


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>

来源:https://stackoverflow.com/questions/21429962/struts2-jquery-datepicker-not-working-properly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!