-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1. Set date on your PC for example to 30.6.2009 (selection of day is important)
2. Set "MM/yyyy" as a format for Datebox.
3. Than in Datebox's popup the selection of month February is not possible (it has less then 30 days)
All works fine when the format is set with days "dd/MM/yyyy".
Do you have any idea where problem could be? Thanks
I guess the result is the same as this... set to the 30.2.2009 = so the java will automatic convert it to 1/3/2009...
<window> <zscript> import java.text.SimpleDateFormat; import java.util.Date; Date myDate = new SimpleDateFormat("dd/MM/yyyy").parse("30/2/1980"); </zscript> <datebox value="${myDate}" /> </window>
Yes this is what I found out too. But what if I want have the format "MM/yyyy" and avoid this automatic conversion from 30.2.2009 to 1/3/2009?
I want to use
<datebox format="MM/yyyy" width="150px" />
and from the datebox's popup select Feb. On PC has to be set to date for example 30.6.2009
Asked: 2009-06-30 13:20:44 +0800
Seen: 293 times
Last updated: Jul 01 '09