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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:56:17+00:00 2026-05-25T11:56:17+00:00

I have a source @Tue, 06 Sep 2011 18:32:55 GMT string and i have

  • 0

I have a source @”Tue, 06 Sep 2011 18:32:55 GMT” string and i have to parse it to NSDate.

i’ve tried in a following way and it works great on a simulators and devices <4 iOS version, but date object becomes nill on iphone 4 device.

NSString *dateString = [NSString stringWithFormat:@"Tue, 06 Sep 2011 18:32:55 GMT"];
NSDateFormatter *df = [[[NSDateFormatter alloc] init] autorelease];
[df setDateFormat:@"EEE, d MMM yyyy HH:mm:ss zzz"];
NSDate *date = [df dateFromString:dateString];

i’ve also tried [df setDateFormat:@”#a, #d #b #Y %H:%M:S #x”], but the problem wasnt solved.

does anyone have some ideas?

  • 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-25T11:56:18+00:00Added an answer on May 25, 2026 at 11:56 am

    My only guess is that you are not using the expected date format with your iOS4 Device.

    Go into your “Settings” -> “General” -> “International” and check that the format used is the same as the other devices.

    What I would still find weird though is that you are hard coding the NSString *dateString in your example but still it could be the reason.

    Date Formats

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

Sidebar

Related Questions

I have lots of source code files. I have lots of hard coded string.
I have source code: private Image getImage(String path, ClassLoader loader) { InputStream image =
I have source in a bunch of subdirectories like: src/widgets/apple.cpp src/widgets/knob.cpp src/tests/blend.cpp src/ui/flash.cpp In
I have source XMLfiles that come in with multiple root elements and there is
I have an executable that defaults to 32-bit. It doesn't have source code and
Have a source xml document that uses namespace containing prefixes and a default namespace.
I have a source base that, depending on defined flags at build time, creates
I have some source files that have comments written in Japanese. When I open
I have the source code of an application written in C++ and I just
I have a source XML file that is used to create C# files that

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.