0

I am making an iPhone app which has its database on the web server. The database is in MySQL. I retrieve the data from server onto the iPhone using JSON parsing.

I have trouble retrieving the TimeStamp datatype that I store in my database. When I try to retrieve the timestamp on iPhone, it shows datetime as shown in the screenshot.

enter image description here

It is basically like this

/Date(1297432377000-0700)\\/

What could be wrong?

halfer
  • 19,824
  • 17
  • 99
  • 186
Parth Bhatt
  • 19,381
  • 28
  • 133
  • 216
  • possible duplicate of [Parsing JSON dates on IPhone](http://stackoverflow.com/questions/1757303/parsing-json-dates-on-iphone) – mmmmmm Feb 12 '11 at 12:14
  • 2
    Possible duplicate of [Parsing JSON dates on IPhone](https://stackoverflow.com/questions/1757303/parsing-json-dates-on-iphone) – halfer Oct 17 '17 at 10:25
  • Since the accepted link-only answer points to another question, this question is a duplicate of the other one. I will try again to close it cc @Mark. – halfer Oct 17 '17 at 10:26

1 Answers1

1

Check this post.

Community
  • 1
  • 1
KingofBliss
  • 15,055
  • 6
  • 50
  • 72