The answer depends on whether you want the server to format the date
or the client to.
Send it as a JSONstring for the 1st case and as a JSONNumber for the
latter.
Send it as JSONNumber if you want the client (GWT) to be able to
render the date as its local time.

On Feb 25, 3:56 am, Lothar Kimmeringer <j...@kimmeringer.de> wrote:
> Dimitrijević Ivan schrieb:
>
> > You can use sql99 standard (YYYY-MM-DD hh:mm:ss) to format date as
> > string in php and write your parser which will convert sql99 date
> > String into Date object in GWT.
>
> If the web-application is accessed internationally I think the
> format used with iCalendar (AFAIR) or XML is better:
> yyyy-MM-ddTHH:mm:ssZ
> Otherwise there might be confusions what 03:00:00 means, the
> timezone of the server or the timezone of the client. Or you
> define that all times have to be in UTC and you convert them
> accordingly on server- and client-side.
>
> Regards, Lothar
--~--~---------~--~----~------------~-------~--~----~
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