Friday, January 10, 2014

SimpleDateFormat on server side

I am going crazy.. I need to convert a String into a Date.. I have this code:

data_inizio = "10/01/2014";
Date date = new SimpleDateFormat("dd/MM/yyyy").parse(data_inizio);
Window.alert("Date: " + date);

and the output is:
Date: Fri Jan 10 00:00:00 CET 2014

And DateTimeFormat is not supported by server-side. What i can do??

Thanks in advance

Davide

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment