On Monday, May 16, 2011 1:42:45 PM UTC-4, Christian Goudreau wrote:
>
> Well, you may be right about some missing javadoc features, but do you have
> to flame about it knowing that they work hard and give us this incredible
> tool freely ? I'm maybe to sensitive lol
>
> As for format, define your own, it's easy:
> @Provides @Named("BlogPostFormat")
> DateTimeFormat getDateTimeFormat() {
> return DateTimeFormat.getFormat("MMMM dd, yyyy");
> }
>
As the next post suggests, this is not going to get you the correct
localized DateTimeFormat. If you really want a customized one that is still
localized, see CustomDateTimeFormat, as in:
public interface MyFormat extends CustomDateFormat {
@Pattern("MMMMddyyyy")
DateTimeFormat format();
}
MyFormat fmt = GWT.create(MyFormat.class);
Window.alert(fmt.format(date));
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.