On 17 juil, 16:12, Magnus <[email protected]> wrote:
> Hi,
>
> in my server side code I use this method to get a timestamp string:
>
>  private String getDateTimeStr (java.util.Date d)
>  {
>   DateFormat fmt = new SimpleDateFormat ("yyyy-MM-dd HH:mm:ss");
>   String t = fmt.format (d);
>   return (t);
>  }
>
> On client side, these classes (Date, SimpleDateFormat) are not
> available.
> How can I retrieve the time values on client side?

Have a look at DateTimeFormat#parse
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/i18n/client/DateTimeFormat.html

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

Reply via email to