How to check if date (from date picker) is between two other dates ? objective-c

后端 未结 3 630
醉话见心
醉话见心 2021-01-27 20:49

i\'m trying to get date from UIDatePicker (MM-dd format) and to check if its in the range of two other dates;

i have tried it in so many different ways and i think my mi

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-27 21:24

    Methods laterDate and earlierDate return an NSDate.

    You should use instead compare: and check the return value.

提交回复
热议问题