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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:18:50+00:00 2026-05-13T22:18:50+00:00

February, 26 2010 21:34:00 Based on all the documentation I can find, MMMM, d

  • 0

February, 26 2010 21:34:00

Based on all the documentation I can find, MMMM, d yyyy H:m:s should be correct – but my NSDate dateFromString is returning null.

  • 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-13T22:18:50+00:00Added an answer on May 13, 2026 at 10:18 pm

    I once had lots of trouble with exactly this kind of problem until I explicitly set the formatter to en_US locale. systemLocale is NOT good because it may be something other than en_US, affecting e.g month/weekday names etc. This is a piece of working code:

    NSDateFormatter *fmt = [[[NSDateFormatter alloc] init] autorelease];    
    [fmt setDateFormat:@"eee MMM dd HH:mm:ss Z yyyy"];
    [fmt setLocale:[[[NSLocale alloc] initWithLocaleIdentifier:@"en_US"] autorelease]];
    NSDate *formattedDate = [fmt dateFromString:someStringContainingDate];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can i create a list of all the month names e.g January, February
I'm trying to convert 2010-02 to February, 2010. But, I keep getting December, 1969
UPDATE - A comprehensive comparison, updated as of February 2015, can be found here:
Let's say I have 28th of February 2010 and add one month to this
I have a date string Sunday, February 28, 2010 that I would like to
I have a program that find all .csv reports file in a directory. This
I want to order by date. e.g. table_date February 2011 January 2011 December 2010
The following code should take the fourth friday of February and the fourth friday
Today is Tuesday, February 9, 2010 and when I print the date I get
How would I convert an NSString like 01/02/10 (meaning 1st February 2010) into 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.