Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » CalendarCombo Date Format
CalendarCombo Date Format [message #65768] Fri, 17 July 2009 13:29 Go to next message
Eric Jain is currently offline Eric Jain
Messages: 266
Registered: July 2009
Senior Member
How do I change the format of the date shown in CalendarCombo?
Re: CalendarCombo Date Format [message #65812 is a reply to message #65768] Fri, 17 July 2009 15:02 Go to previous message
Eric Jain is currently offline Eric Jain
Messages: 266
Registered: July 2009
Senior Member
Solution: Create a DefaultSetting subclass with an overridden
getDateFormat method and pass it to the CalendarCombo constructor.

ISettings settings = new DefaultSettings() {
@Override
public String getDateFormat() {
return "yyyy-MM-dd";
}
};
Re: CalendarCombo Date Format [message #595722 is a reply to message #65768] Fri, 17 July 2009 15:02 Go to previous message
Eric Jain is currently offline Eric Jain
Messages: 266
Registered: July 2009
Senior Member
Solution: Create a DefaultSetting subclass with an overridden
getDateFormat method and pass it to the CalendarCombo constructor.

ISettings settings = new DefaultSettings() {
@Override
public String getDateFormat() {
return "yyyy-MM-dd";
}
};
Previous Topic:CalendarCombo Error Handling
Next Topic:How to handle AutoComplete control properly in Grid Cell Editor?
Goto Forum:
  


Current Time: Wed Jul 23 22:33:16 EDT 2014

Powered by FUDForum. Page generated in 0.02248 seconds