kirtcathey schrieb: > How do we convert a DateTime to a string in GWT. ALL of the posts go > the other direction, which seems to be a no-brainer. Is it only one- > way?
What exactly do you mean by DateTime? In GWT you use java.util.Date for dates. If you want to format it, you can do it using DateTimeFormat: DateTimeFormat format = DateTimeFormat.getFullDateTimeFormat(); builtValue.setText(CONSTANTS.About_BuiltDate(format.format(data.buildDate))); English version: Built: Thursday, March 25, 2010 4:09:37 PM Etc/GMT-1 German version: Erzeugt: Donnerstag, 25. März 2010 16:09:37 Etc/GMT-1 Details about this class can be found in the Javadocs. Regards, Lothar -- 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.
