How to compare two dates in iphone?

后端 未结 6 1198
渐次进展
渐次进展 2020-12-22 09:50

I want to compare the todays date and other date coming from my database. For example, 2011-03-25 compare it with 2011-02-25

How can i formate my database date as t

6条回答
  •  感情败类
    2020-12-22 10:38

    You can use NSDate compare: or timeIntervalSinceReferenceDate -- that'll get you started

提交回复
热议问题