How to put a NSDate Object into sqlite -


i read posts topic, nothing solved problem. have following lines of code.

nsdate *today = [nsdate date]; nslog(@"today: %@", today);  self.person.dayofbirth = today;  nslog(@"birth: %@", self.person.dayofbirth);  [appdelegate savecontext]; 

the nslog-statements tell me right result expected. , result stored in database. when @ cell in sqlite manager, there value this: 399911663.291896 think timestamp cuz column's type "timestamp"... dot strange. dont know how right date in sqlite db. can me please?

i think nsdate stored in nsmanagedobjects sqlite db nstimeinterval double (the seconds since 1970). have problems date different when read objects out of db?


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -