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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:53:04+00:00 2026-05-27T03:53:04+00:00

I have an odd issue with an NSDateFormatter, I am passing the following string

  • 0

I have an odd issue with an NSDateFormatter, I am passing the following string as a date format “dd/MM/yy”

If I enter 50 for the year I get a conversion to 1950 however anything below that for instance 49 results in 2049. Any ideas how I can remedy this?

Many 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-27T03:53:05+00:00Added an answer on May 27, 2026 at 3:53 am

    It sounds like you’ll need to force a four digit response (or programmatically prepend two digits of “19”) to wherever you’re drawing your string from. Lots of people are using dates in the near to mid-term future like “12/21/12” (end of the Mayan Calendar era) so it’s natural that a 2 digit year assumes 2000+ for digits 1-50 and 1999- for digits (50-99).

    I’m also seeing a number of Google hits on the keyword terms “NSDateFormatter” & “century”, b.t.w.

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

Sidebar

Related Questions

I have an odd linq subquery issue. Given the following data structure: Parents Children
I have run into an odd casting issue while using generics. The following code
I have an odd issue while using FlashCS4. I have a textfield that, when
I have a really odd issue with an ItemRenderer. I have a main.mxml container
I have a very odd issue. When I execute a specific database stored procedure
An odd issue that I have been trying to address in a project -
I am learning JQuery, and I have ran into an odd issue. I made
I have an odd alignment issue where an extra space is being added. Here
I have a bit of an odd issue. I have a projects controller where
I have a little bit of an odd issue. When I run this SQL:

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.