Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
If you are comparing 2 NSDate objects, and not two strings that CONTAIN dates, you can use the compare method for NSDates directly.
If you want to compare two strings that contain dates you would need to first convert them to NSDates using an NSDateFormatter object, and then compare the resulting NSDates.
Regards,
Duncan C WareTo
Animated GIF created with Face Dancer, available for free in the app store.
Replies
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeHow-to: real-world dates with the iPhone SDK
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesomesmithdale87 has it right.
If you are comparing 2 NSDate objects, and not two strings that CONTAIN dates, you can use the compare method for NSDates directly.
If you want to compare two strings that contain dates you would need to first convert them to NSDates using an NSDateFormatter object, and then compare the resulting NSDates.
Duncan C
WareTo
Animated GIF created with Face Dancer, available for free in the app store.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome