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
Post a Comment