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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:27:51+00:00 2026-05-27T13:27:51+00:00

I was bitten by the problem described here: Android DatePicker year problem . In

  • 0

I was bitten by the problem described here: Android DatePicker year problem . In a nutshell, Android’s DatePicker expects years to be specified in years (2011 is 2011), while Java’s Date class starts at 1900 (so 2011 is actually 111).

Is there a better way to intermix Date and DatePickers, other than adding and substracting 1900 when doing the conversions?

Itay.

  • 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-27T13:27:51+00:00Added an answer on May 27, 2026 at 1:27 pm

    Yes – don’t use the deprecated methods in Date to work with day/month/year values. Date just represents an instant in time – you should use Calendar if you want to translate that into some appropriate human breakdown into days, months, years etc – and to apply time zones.

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

Sidebar

Related Questions

Ok perhaps ive bitten off too much here... I know you are not supposed
I may have bitten off more than i can chew here. I've moved outside
I've been bitten by this problem a couple of times and so have my
I have been bitten by something unexpected recently. I wanted to make something like
I have been bitten by a poorly architected solution. It is not thread safe!
I've just been bitten by an annoying bug that was made obscure by the
I've recently been bitten by the javascript:void(null); bug in my hrefs when applied to
I've recently been bitten by the (way too commmon in my opinion) gotcha of
I believe I'm getting bitten by some combination of nested scoping rules and list
A colleague of mine recently got bitten badly by writing out of bounds 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.