Not sure what your question is. Are you trying to format for display? Are you trying to parse input? Trying to determine something else?
Formatting & parsing already done for you: http://google-web-toolkit.googlecode.com/svn/javadoc/1.4/com/google/gwt/i18n/client/DateTimeFormat.html A hack (unless there's no better way) would be to use DateTimeFormat to format a date so it displays a known time like year 0, month 1, day of month 1, hour 23, minute 0, second 0. Then search for the number 23 in the formatted string - if it's there, you're on military time - otherwise AM/PM. However, this obviously has downsides because it makes assumptions about how the locale formats the time (in particular assumes arabic numbers for time format). On Wed, Apr 22, 2009 at 5:12 AM, priya <joshipriya...@gmail.com> wrote: > > Hi all, > > In my GWT application I want to know the time format of the system > time > whether its 12 hr or 24hr at client side. > > How can i get this? > > Can anyone help me? > > Its really urgent... > > Thanks, > Priya > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---