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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:13:58+00:00 2026-05-23T19:13:58+00:00

I get the following date format from my application. 07/18/2011/04/45/EDT I sub-string that to

  • 0

I get the following date format from my application.

07/18/2011/04/45/EDT

I sub-string that to “07/18/2011/04/45” and “EDT”.

Using the following code I compose a date.

   NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
   [dateFormatter setDateFormat:@"MM/dd/yyyy/HH/mm"];
   [dateFormatter setTimeZone:[NSTimeZone timeZoneWithAbbreviation:@"EDT"]];

   NSDate *currentServerDate = [dateFormatter dateFromString:formattedDateString];
   NSLog(@"currentServerDate %@",currentServerDate);

However when I print the NSDate (created using above formattter) it print as “2011-07-18 14:15:00 +0530” where +0530 is my timezone. I need to compose the relative to the EDT timezone. How do I do that?

Thank you

  • 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-23T19:13:59+00:00Added an answer on May 23, 2026 at 7:13 pm

    I think the time zone is probably not what you think it is. Try logging the time zone returned by timeZoneWithAbbreviation: and seeing what it tells you. Also, review the documentation I linked to where it says:

    In general, you are discouraged from using abbreviations except for unique instances such as “UTC” or “GMT”. Time Zone abbreviations are not standardized and so a given abbreviation may have multiple meanings—for example, “EST” refers to Eastern Time in both the United States and Australia

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

Sidebar

Related Questions

I got the following date format that I get from an API (Yes I
I have the following code that takes a String of milliseconds (will be from
i have the following code def get(self): date = datetime.date.today() loc_query = Location.all() last_cursor
I am using the following code to export a dataset from c# to excel.
I using PHP's strtotime function for converting date from one format to another i
I have to validate the format of a date string coming from a csv
I'm trying to parse a date that i get from JavaScript script evaluated with
Take the following code: var first = new Date(2011-09-17T15:12:04.331Z); var second = new Date(2011-09-17T19:55:19.269Z);
I am using the following function to Convert a String variable to a Date.
In SQL, I can format the date field using the following: SELECT article_name, DATE_FORMAT(

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.