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 9206619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:12:50+00:00 2026-06-18T00:12:50+00:00

Let me try this again being more clear, my apologies. \ I am looking

  • 0

Let me try this again being more clear, my apologies.
\
I am looking at trying to add a date specific reminder to my photo assignment app in iOS. I’d love to be able to have it so it will fire a reminder on exact dates of the year that will direct them to the assignments for that time of year

For example:

Dec 31st-New Years Eve-shoot fireworks, parties
July 1st-Canada Day-shoot celebrations, fireworks
October 30th-before halloween-shoot pumpkins, costumes
December 15th-Christmas lights!

Etc.

I already have a daily reminder set up that fires at 9am every day reminding them to get an assignment, which is turned on or off at the users desire by a toggle switch in the settings bundle. I was hoping to have another one for the “holiday reminders”

Here is my current code for the daily reminder:

NSDateComponents *dateComponents = [calender components:(NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit | NSHourCalendarUnit | NSMinuteCalendarUnit)
                                                       fromDate:currentDate];

        NSDateComponents *temp = [[NSDateComponents alloc]init];

        [temp setYear:[dateComponents year]];
        [temp setMonth:[dateComponents month]];
        [temp setDay:[dateComponents day]];
        [temp setHour: 9];
        [temp setMinute:00];

        NSDate *fireTime = [calender dateFromComponents:temp];
        [temp release];

        // set up the notifier 
        UILocalNotification *localNotification = [[UILocalNotification alloc]init];

        localNotification.fireDate = fireTime;
        localNotification.timeZone = [NSTimeZone defaultTimeZone];

How do I covert an actual date (December 31st) to a fireDate = variable/string?

I hope that is more clear. I have searched already and have not been able to find the answer.
Thank you

Noel Chenier

  • 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-06-18T00:12:51+00:00Added an answer on June 18, 2026 at 12:12 am

    You just need to specify the year, month and day manually in when creating your fireTime.

    NSDateComponents *dateComponents = [calender components:(NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit | NSHourCalendarUnit | NSMinuteCalendarUnit)
                                                       fromDate:currentDate];
    
        NSDateComponents *temp = [[NSDateComponents alloc]init];
    
        [temp setYear:2013];
        [temp setMonth:12];
        [temp setDay:31];
        [temp setHour: 9];
        [temp setMinute:00];
    
        NSDate *fireTime = [calender dateFromComponents:temp]; // December 31st 2013 9:00
        [temp release];
    
        // set up the notifier 
        UILocalNotification *localNotification = [[UILocalNotification alloc]init];
    
        localNotification.fireDate = fireTime;
        localNotification.timeZone = [NSTimeZone defaultTimeZone];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let me try this again... MVC 3 Repository Pattern Automapper for ViewModels I put
Let me try this again since the first post got mangled... I've seen a
Alrighty, let's try this again! I'm currently developing an application that will be relying
Let me try ask this again with a code snippet with what I have
Let me try this again so I would like for my dropdown menu to
EDIT : Let's try this again. This time I've used the AdventureWorks sample database
Let me try this again, I'm going to leave out the exact data/example and
Let me try this again, because I'm not sure people got that I was
Ok so let me try to explain this the best way that i can.
I understand my question is not that clear so let me try explaining it

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.