PDA

View Full Version : JSON date format problem at request and response



bryanevil
30 Jun 2010, 5:49 AM
Hi all

I am having problem at reading json date format at extjs and writing json date format to my web service.

This is the json record my web service response to extjs:


{"Data":[{"CompanyID":137,"ID":87,"MonthYear":"\/Date(1262275200000+0800)\/","Remark":""}],"ResponseMessage":null,"TotalCount":1,"success":true}


And this is also the format my web service expects from extjs, so how do I config my extjs to read and write this date format?

I search over the internet and see a lot of related posts, it seems to be a common issue.

Bryan

CrazyEnigma
30 Jun 2010, 5:59 AM
M$

Check out the last entry in the API for Dates (http://www.sencha.com/deploy/dev/docs/?class=Date).

bryanevil
30 Jun 2010, 8:06 AM
got it thanks

CrazyEnigma
30 Jun 2010, 8:12 AM
You got to love the syntax for that.