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 17:29 Go to next message
Eric Jain is currently offline Eric JainFriend
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 19:02 Go to previous message
Eric Jain is currently offline Eric JainFriend
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 19:02 Go to previous message
Eric Jain is currently offline Eric JainFriend
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: Mon Dec 22 08:34:22 GMT 2014

Powered by FUDForum. Page generated in 0.01989 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software