Sunday, 15 July 2012

ios - Is it a way to store only date, no time in CloudKit? -



ios - Is it a way to store only date, no time in CloudKit? -

i not want store time in cloudkit, way avoid it? problem date uidatepicker, , dow set date (dp.datepickermode = .date) redundant time info stored in cloudkit too. reddish marked number not set via date picker.

nsdate has no concept of minutes, hours, seconds, day, months, years. nsdate purely reference single point in time.

it when display date readable format (like string) see years, months, days, hours, etc...

that product of fact nsdate gets rendered human readable string debugging.

if don't want show date don't show date. fact though, someone's date of birth contain hours, minutes , seconds it's convention decide truncate downwards days only.

just utilize nsdate , when display display date part.

btw

when don't show time in uidatepicker current time used.

ios swift cloudkit

No comments:

Post a Comment