Dashboard > WebWork > ... > FAQ > How do I set a date into datepicker component
  WebWork Log In View a printable version of the current page.  
  How do I set a date into datepicker component
Added by tm_jee, last edited by tm_jee on Dec 08, 2006
Labels: 
(None)

The trick is to format the date correctly before sending it to the datepicker, and let datepicker what format it is supposed to be usinging.

<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>

contributed by Philip Luppens

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators