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.

GWT implements Date object but without support for class
GregorianCalendar, so your date parser should use some depricated
methods.

Best regards.



On Feb 25, 8:19 am, sutarsa giri <sutarsa.g...@gmail.com> wrote:
> so that's was probably the reason of that.
>
> well, seems that i need to use string for date.Thx for your information
>
> regards,
> gede sutarsa
>
>
>
> On Wed, Feb 25, 2009 at 2:47 PM, Jason Morris <lem...@gmail.com> wrote:
>
> > The JSON spec actually has no way of representing a date.
>
> > There are several possible methods (and hacks) that allow you to ship dates
> > over JSON (though none
> > of them are really perfect).
>
> > I would personally recommend sending dates as UTC numbers, since that way
> > you don't have to hack the
> > JSON encoding / decoding process to get it to work, the disadvantage being
> > you loose readability of
> > your data (as plain text).
>
> > Hope that helps a bit.
> > //J
>
> > sutarsa giri wrote:
> > > dear all,
> > > I'm trying to use php as beckend for my gwt application( actually I'm
> > > not really confortable with gwt+json, but I don't have choice   ),
> > > There is a thing that make me confuse. there is
> > > JSONString,JSONNumber,JSONObject,JSONBoolean, but why there is no built
> > > in JSONDate?
>
> > > did anyone know why?, i'm also try to googling about json date. but it's
> > > lead me to another confusion. any pointer woud be helped
>
> > > thx and regards,
> > > Gede sutarsa
--~--~---------~--~----~------------~-------~--~----~
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