Thanks, that seems like a better solution :-)
On 19 Maj, 17:26, Salvador Diaz <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 [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
-~----------~----~----~----~------~----~------~--~---