I don't need to change the format, i want to format the date according to timezone.
DateTimeFormat has method format with args date and timezone, but i don't know how to pass GMT like time zone for example GMT+1, GMT+0, GMT-2 etc... This is throwing exception that GMT+1 is unknown. This is because createTimeZone method is receiving strings from TimeZoneConstants and i can't use them. Regards. DateTimeFormat.getShortDateFormat().format(new Date(System.currentTimeMillis()), TimeZone.createTimeZone("GMT+1")) On Thu, Aug 25, 2011 at 4:01 PM, Ashwin Desikan <ashwin.desi...@gmail.com>wrote: > You can use the DateTimeFormat function defined in the > com.google.gwt.i18n.client.DateTimeFormat to specify the format. > > check out the > http://gwt.google.com/samples/Showcase/Showcase.html#!CwDateTimeFormatexample > in showcase on how to set the various formats > > regards > Ashwin > > > On Thursday 25 August 2011 06:22 PM, mariyan nenchev wrote: > > Hi, > > How can i format dates in gwt for specific time zone like "GMT+2" for > example. > > Regards. > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.