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
-~----------~----~----~----~------~----~------~--~---

Reply via email to