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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:45:36+00:00 2026-06-11T04:45:36+00:00

I’ve been developing a calendar app for iOS which is bugging me with lots

  • 0

I’ve been developing a calendar app for iOS which is bugging me with lots of issues.

I’m using local notifications for reminders. What is the best way to store event dates, alarm dates or whatever? I mean, the issues were coming up caused by timezone differences etc. I’m storing events in Core Data. I’ve been using NSDate for date storage but i’m not sure it’s a good way to query and represent events in a calendar view. Because of timezone, the events were showing up at wrong days (like 1 day before from real day).

Also, is there a tutorial or open source project that I can peek into? I haven’t encountered anything comprehensive, only little tutorials on how to use tapku calendar view.

Edit: I’m not asking a question about only calendar views. I’m asking about infrastructure of calendar app.

  • 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-11T04:45:38+00:00Added an answer on June 11, 2026 at 4:45 am

    You should store with NSDate, and present with NSDateComponents.

    Because of timezone, the events were showing up at wrong days (like 1 day before from real day).

    This happens because NSDate is an absolute point in time. You need to do the proper conversions to display based on the users locale. The NSDateComponents (along with NSCalendar) will take care of this.

    The Date and Time Programming Guide will tell you all that you need to know, but the first paragraph sets the tone:

    There are three main classes used for working with dates and times.

    • NSDate allows you to represent an absolute point in time.
    • NSCalendar allows you to represent a particular calendar, such as a Gregorian or Hebrew calendar. It provides the interface for most
      date-based calculations and allows you to convert between NSDate
      objects and NSDateComponents objects.
    • NSDateComponents allows you to represent the components of a particular date, such as hour, minute, day, year, and so on.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're building an app, our first using Rails 3, and we're having to build
I am using Paperclip to handle profile photo uploads in my app. They upload
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I would like to run a str_replace or preg_replace which looks for certain words

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.