In my application, I store the date as a string (format "MM / dd / YYYY"). In the DB. later, when I get the string, I need to compare two dates, how can I achieve this?
If I used the format "YYYY / MM / dd", I could directly compare it as strings. Now I need to convert back to an NSDate object using "nsdateformatter" and "dateFromString". But I get a constant date value using this, no matter what I do.
Any ideas?
source
share