Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6792651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:59:49+00:00 2026-05-26T17:59:49+00:00

I have two NSMutableArray ‘s [ nowEvents and todayEvents ] with a list of

  • 0

I have two NSMutableArray‘s [nowEvents and todayEvents] with a list of events.

For the first array I’d like to remove the events that are happening today

myEventClass *nowEvent = [appDelegate.nowEvents objectAtIndex:indexPath.row];

And for the 2nd one, the events that are happening now

myEventClass *todayEvent = [appDelegate.todayEvents objectAtIndex:indexPath.row];

The date,

NSDate *theDate = [NSDate date];
NSDateFormatter *formatter = [[[NSDateFormatter alloc] init] autorelease];
[formatter setDateFormat:@"dd/MM/yyyy"]; // Set the required date format
NSString *nowDate = [formatter stringFromDate:theDate];

UPDATE:

<event>
<name>My EventName</name>
<start_time>2011-10-13 19:30:00 +0200</start_time>
<end_time>2011-10-09 21:30:00 +0200</end_time>
</event>

Note: I’m parsing an xml list with today event list and adding it to two NSMutableArrays [nowEvents and todayEvents]

Want to have two sections with events: those which are happening today (in the current day) & now (haven’t finished yet or are happening now); that’s why I need to compare with date

How I’m amble to remove objects from these NSMutableArrays?

nowEvent – I need to compare with current (now) date
todayEvent – I need to compare with today date

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:59:50+00:00Added an answer on May 26, 2026 at 5:59 pm

    Use

    [your_array removeObjectAtIndex: give_index_here ];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two NSMutableArray filled with data object. how do I compare both array
So i have two view controller in FirstViewController and SecondViewController in FirstViewController NSMutableArray *array;
I have two NSMutableArray, first keeps some location's latitudes and second keeps longitudes. Then,
I have a TabBarController and define two tabs in my code like: NSMutableArray *viewControllerArray
I have an NSMutableArray that contains a few custom objects. Two of the objects
I have a NSMutableArray with five objects. I want to remove two objects when
I have two applications written in Java that communicate with each other using XML
I have two arrays of animals (for example). $array = array( array( 'id' =>
I have two NSMutableArrays: NSMutableArray* currentMessages NSMutableArray* items I am trying to copy the
I'm creating an object that will have two integers (or NSNumber s) and an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.