|Re: How To set Dataformat for DateTime widget [message #652914 is a reply to message #652853]
||Mon, 07 February 2011 15:12
| Grant Gayed
Registered: July 2009
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:
* <dd>DATE, TIME, CALENDAR, SHORT, MEDIUM, LONG, DROP_DOWN</dd>
* 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
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 .
"ash" <firstname.lastname@example.org> wrote in message
> How To set Dataformat for DateTime widget
Powered by FUDForum
. Page generated in 0.02016 seconds