• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

DateBox issue

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a DateBox , setting the default format like :
DateBox dateBox = new DateBox();
dateBox.setFormat(new DefaultFormat(DateTimeFormat.getFormat("MM/dd/yyyy"));

Now the date picker works fine. However if I enter date manually in the textbox some other format like : 2011/03/02 , it automatically changing the date to some junk date : 07/03/0169

If I don't set the date format and try to get the String and parse it in onValueChangeEvent of the textBox, the control doesn't even fire this event as it takes 2011/03/02 as valid date
and changes the text box automatically.

Clueless.. please some one help !!
 
brevity is the soul of wit - shakepeare. Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic