database - iOS Insert Row with 2 Date Fields -


how 1 insert row table i've created 2 sqlserver smalldatetime fields via windows azure mobile services library? i'm trying use:

[nsdate timeintervalsince1970] 

to store date-time value nstimeinterval or double. however, causes following error:

error domain=com.microsoft.windowsazuremobileservices.errordomain code=-1302 "error: bad request."  

datetime fields should represented nsdate field in nsdictionary object sending insert or update call.

so do:

[table insert:@{ @"id": @"myid", @"deliverydate": [nsdate date] } completion:... ]; 

if send nsnumber instead, see -1302 error shown above.


Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

python - RuntimeError: Optimal parameters not found: Number of calls to function has reached maxfev = 800 -

flash - Air stagewebview scroll manipulation -