0

Datebox problems with "MM/yyyy" format

asked 2009-06-30 13:20:44 +0800

dfghj gravatar image dfghj
15

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

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-07-01 03:24:53 +0800

kindalu gravatar image kindalu
255

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>

link publish delete flag offensive edit

answered 2009-07-01 07:11:31 +0800

dfghj gravatar image dfghj
15

updated 2009-07-01 08:31:35 +0800

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

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-06-30 13:20:44 +0800

Seen: 293 times

Last updated: Jul 01 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More