GWT has class DateTimeFormat http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/i18n/client/DateTimeFormat.html
On May 1, 3:09 pm, Neo <[email protected]> wrote: > Thanks Jim. > > Now, I have a question at this point. Now as per you solution I get > the date. > But i want to display the date in a particular format say : yyyy-mm-dd > HH:mm:ss, hence I use SimpleDateFormat. > > But SimpleDateFormat wont work in my client side code. > > Now, how am I supposed to do this ? > > On May 2, 12:00 am, Jim <[email protected]> wrote: > > > In client Java code, you can get your client browser date by new Date > > (). In server Java code the same code gives you the date about your > > server sytem. It depends on which one you want. They are not the same > > in most cases. It is the same if you test it in your local machine. > > > Jimhttp://www.gwtorm.comhttp://code.google.com/p/dreamsource-orm/downloa... > > > On May 1, 2:47 pm, Neo <[email protected]> wrote: > > > > As I understand that whenever I need to fetch anything from the server > > > I have to use RPC. > > > > Now, I need to find the system's current date. I cant do it on my > > > client side code, so have to do it in my server code. But for this > > > trivial need do to I have to use RPC ? > > > > Please explain to me the best approach to use for getting the date ?- > > > Hide quoted text - > > > - Show quoted text - > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
