Hi sindroide,
Are you trying to change a Text String date, into another Text String
date?
I'm not sure if I understand your needs.
But, look at the static "parse" method in the Date class:
Date d = Date.parse("Tue, xxxxxx");
String newDate = DateTimeFormat.getFormat("dd/MM/yyyy").format(d);
Mike.
On May 12, 3:28 am, sindroide <[email protected]> wrote:
> Hi, I can not get in anyway a Date value like 2009/05/12 from text
> like 'Tue May 12 00:00:00 ART 2009'
> The only way I can not get illegalArgumentexception es like
>
> Date f = new Date();
>
> // this print like i want but it's text
> System.out.println(DateTimeFormat.getFormat("dd/MM/yyyy").format
> (f));
>
> //this prints date but ... in words format
> System.out.println(DateTimeFormat.getFormat("dd/MM/yyyy").parse
> (DateTimeFormat.getFormat("dd.MM.yyyy").format(f)));
>
> cuold you please help me. Thanks for advance!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---