|
Re: How To set Dataformat for DateTime widget [message #652914 is a reply to message #652853] |
Mon, 07 February 2011 15:12 |
Grant Gayed Messages: 2150 Registered: July 2009 |
Senior Member |
|
|
Assuming you mean how to specify the format that a date or time is displayed
in, this is done by setting the appropriate style bit(s) when creating the
DateTime. The relevant javadoc from DateTime is:
* <dt><b>Styles:</b></dt>
* <dd>DATE, TIME, CALENDAR, SHORT, MEDIUM, LONG, DROP_DOWN</dd>
* </dl>
* <p>
* Note: Only one of the styles DATE, TIME, or CALENDAR may be specified,
* and only one of the styles SHORT, MEDIUM, or LONG may be specified.
* The DROP_DOWN style is a <em>HINT</em>, and it is only valid with the
DATE style.
* </p><p>
SHORT/MEDIUM/LONG mean show the least/more/most info about the date or time.
If you're asking about changing this style for an existing DateTime
instance, this is not currently supported. I could not find an existing
request for this, so if this is what you wanted then you can log a feature
request with swt at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=SWT&bug_severity=enhancement .
Grant
"ash" <ashok_kumar_rr@yahoo.com> wrote in message
news:iioknp$tsj$1@news.eclipse.org...
> Hi
> How To set Dataformat for DateTime widget
>
> Thanks
> Ashok
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03267 seconds