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

  • Home
  • SEARCH
  • 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 8102641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:17:38+00:00 2026-06-05T23:17:38+00:00

I have some objective-c code I’m converting from iPhone to iPad. CFGregorianDate is used

  • 0

I have some objective-c code I’m converting from iPhone to iPad. CFGregorianDate is used throughout for date functions. I have never used it, preferring to use NSDate.

I want to take the date and format it so I get the full month name, using the format string “MMMM”, which I don’t seem to be able to do using CFGregorianDate.

What’s the difference between the two, and does it make any difference in usage?

  • 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-05T23:17:40+00:00Added an answer on June 5, 2026 at 11:17 pm

    From the docs:

    CFDate is “toll-free bridged” with its Cocoa Foundation counterpart, NSDate. What this means is that the Core Foundation type is interchangeable in function or method calls with the bridged Foundation object. In other words, in a method where you see an NSDate * parameter, you can pass in a CFDateRef, and in a function where you see a CFDateRef parameter, you can pass in an NSDate instance. This also applies to concrete subclasses of NSDate.

    So, no difference in usage, really. The main difference is that CFDate and its subclasses are legacy types.

    However, as has been pointed out, CFGregorianDate is extremely different from CFDate. It doesn’t store a timestamp but rather the year, month, day, hour minute and second as separate integers.

    So your best bet is to create a method like cfGregorianToNSDate: in which you parse these integers and construe a new NSDate object.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an integer myInt in some Objective-C code. myInt is used as a
I have some Objective-C code that looks like this: #define myVar 10 float f
I currently have some objective C code which I use to identify the difference
Is there a way to get pre-processed C /Objective-C code? I have some files
I have some objective-c code that uses an NSLock to implement a sort of
I am developing an app for iphone/ipad that I have some problems with. I
I have some synchronization in my Objective-C project. The code looks like this: -
I have some Objective-C code that does the job for me. But is it
I am converting some Objective-C++ code into plain Objective-C and I am having some
I have come across some strange behavior in my iPhone Objective-C app. I am

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.