compare - NSDate comparison confusion -


i have:

nsstring *dateofbirth = @"1997-01-13t00:00:00+1000" 

i present user date picker allow them choose date compare above dateofbirth string representation of date.

assuming choose 1997-01-13 nsdate compare, convert dateofbirth nsdate 1997-01-12 14:00:00 +0000 (when nslogged) when compared user selected not result in nsorderedsame. have not played around nsdates much. how can handle nsorderedsame when 2 dates compared.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -