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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:38:47+00:00 2026-05-23T09:38:47+00:00

How to get this format of date from NSString; Wed, 22 Jun 2011 12:36:00

  • 0

How to get this format of date from NSString;

Wed, 22 Jun 2011 12:36:00 +0100 to Wed, 22 Jun 2011.

Thanks

  • 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-23T09:38:47+00:00Added an answer on May 23, 2026 at 9:38 am

    Try this code.

    NSString *dateStr = @"Wed, 22 Jun 2011 12:36:00 +0100";
    
        // Convert string to date object
        NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
        [dateFormat setDateFormat:@"EEE, d MMM yyyy HH:mm:ss ZZZ"];
        NSDate *date = [dateFormat dateFromString:dateStr];  
    
        // Convert date object to desired output format
        [dateFormat setDateFormat:@"EEE, MMM d YYYY"];
        dateStr = [dateFormat stringFromDate:date];
        NSLog(@"Date -- %@",dateStr);
        [dateFormat release];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As response from .net service I get this date format: /Date(1233323754523+0100)/ 1233323754523 is date
i get date from xml in this format: 7/16/2010 (mm/dd/yyyy) i have in my
I get a date from the database in this format hh:mm:ss And I want
The date you get back from twitter is in this format Fri Aug 07
Can anybody help me get this date format like Fri, 01 Oct 22:26:23 +0200
How do I get the system date and time in this format: $systime=12/january/2010 10.30
I want to format a date from a string. I can do it this
I would like to get this format: 2:18:00 pm Using the sample code from
I use NOW() function but I get this weird date: 2011-11-06 How do I
I pick this date from a textbox and i would like to format to

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.