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