Re: datepicker

Philip Luppens <[email protected]> Fri, 08 Dec 2006 02:57:45 CST
Newsgroups gmane.comp.java.open-symphony.webwork
Message-ID <12245090.1165568362232.JavaMail.os-j2ee@opensymphony01.managed.contegix.com>
Ok, once again, use the ww:date tag for formatting dates. If you want to format the current date, use name="new Date()".

http://forums.opensymphony.com/thread.jspa?threadID=24889

"The trick is to format the date correctly before sending it to the datepicker, AND telling the datepicker what format you are using. Here you go":
[code]
<ww:form name="form" action="to_infinity_and_beyond" method="post">
     <ww:date name="%{new java.util.Date()}" format="dd-MM-yyyy hh:mm" id="date"/>
     <ww:datepicker value="%{#date}" showstime="%{true}" format="%d-%m-%Y %H:%M"/>
</ww:form>
[/code]
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=41685&messageID=105938#105938

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]