I have:
NSString *dateOfBirth = @"1997-01-13T00:00:00+1000"
I then present to the user a date picker to allow them to choose a date to compare with the above dateOfBirth
string representation of a date.
Assuming they choose 1997-01-13
as the NSDate to compare, I convert dateOfBirth
to NSDate but get back 1997-01-12 14:00:00 +0000
(when NSLogged) which when compared to what the user selected would not result in NSOrderedSame
. I have not played around with NSDates much. How can handle this to get back NSOrderedSame
when the two dates are compared.