-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I encountered this strange behaviour when I try to adjust the value of a datebox.
it seems if datebox.format='yyyy-MM' then DAY_OF_MONTH will not changed when adjusting date.
tested on zk-3.6.4 & zk-5.0.1(live demo)
<datebox format='yyyy-MM' onCreate='self.value=new Date(2010-1900,03-1,31)'/>
Hi lovetide,
The getValue of the Datebox will parse the text in the input element ( like "2010-03"),
so the DAY_OF_MONTH always the same,
maybe you can post a feature request.
Asked: 2010-03-31 21:53:40 +0800
Seen: 325 times
Last updated: Apr 06 '10