Oh............ forgot to mention something important... I have to be able to add/subtract dates aswell... Back to using Calendar object I guess?
On 19 Maj, 20:29, Dalla <dalla_man...@hotmail.com> wrote: > Thanks, that seems like a better solution :-) > > On 19 Maj, 17:26, Salvador Diaz <diaz.salva...@gmail.com> wrote: > > > No, the right way to do this is with formatters: > > >http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g... > > > Hope that helps, > > > Salvador > > > On 19 mai, 17:10, Magius <antonio.diaz....@gmail.com> wrote: > > > > You can (a) call to the server and receive a string formatted date or > > > (b) build the string using Date.getDay( ), Date.getMonth( ), ... and > > > an array with "Sunday", "Monday", ... > > > > On May 19, 4:57 pm, Dalla <dalla_man...@hotmail.com> wrote: > > > > > I´m building an application where I need to print the day of the week > > > > and the current date, like so: > > > > "Tuesday, 2009-05-19" > > > > > This would be very easy using the Calender class. But since this isn´t > > > > part of the JRE emulation, I guess I have to solve it another way. > > > > What would be the best way to do this? > > > > I solved it by creating a simple Javabean: > > > > > public class CustomDate implements IsSerializable { > > > > public CustomDate() { > > > > } > > > > private Date date; > > > > private String dayOfWeek; > > > > //Get / Set > > > > > } > > > > > which I populate with info from the Calendar class. > > > > Is this a godd way to solve the problem? How would you solve it? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---