I retrieve the NSTimeInterval as follows:
NSTimeInterval milisecondedDate = ([[NSDate date] timeIntervalSince1970] * 1000);
Which logs this: UNIX Timestamp: "1307710190993.865967"
I only want the value before the dot to send with JSON like this:
"/Date(1307710131826+0200)/"
Any suggestions?
Thanks in advance,
Get the current timestamp in milliseconds since 1970 UNIX Timestamp.
Format the milliesecondedDate to a string with no decimals.
Set up the timestamp in DateTime .net format.
There is probably a much better solution for doing this, but this worked for me for now.