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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:59:03+00:00 2026-06-18T03:59:03+00:00

actually I’m a .NET guy and I wonder why such a simple and trivial

  • 0

actually I’m a .NET guy and I wonder why such a simple and trivial things as handling date/time objects is that complicated

Everything I need is a object which holds the parameters for Day, Month, Year, Hour, Minute, Second…
and the possibility to manipulate theses values.

I don’t want any conversion to any timezone.
Values of parameter should have the value is set!

Question 1:
How to create a date object from minutes?
Question 2:
How to create a date object from int’s??

I’ve already spend hours to accomplish that and I can’t believe that I really have to create my own DateTime implementation in Java!!

I tried it using Calendar(GMC, UTC…) and just Date but always the same.
The values got from my Date-TimePicker are transformed to daylight saving time or some other rule corresponding to the calender I defined.
One thing I really wonder about is that my time also get transformed when I use just “Date” object…

Cheers,
Stefan

  • 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-06-18T03:59:04+00:00Added an answer on June 18, 2026 at 3:59 am

    Date and Calendar are not the best APIs in Java’s library (to put it mildly, I consider them flaw-complementary), that’s why a lot of Java programmers are using Joda-Time and many are looking forward to the inclusion in the standard distribution of JSR-310, a brandnew replacement for the old Date & Calendar mess. Joda has the added benefit that transitioning between Date and Joda’s types is very easy (by using .toDate() or by using the relevant constructor that accepts a Date) so that using Joda’s types inside your code and Date just at the “outer edges” where you interact with Date based code is not painful at all.

    For your question 2, there’s still a Date constructor that accepts int, and although it’s deprecated you can still use it, see this thread. But I’d only suggest you take that route if switching to Joda isn’t an option for you.

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

Sidebar

Related Questions

Actually I am developing one application in that when application run first time it
actually I'm have a very simple problem (that's for sure) I just can't find
Actually I want to clear that shall i do ASP.Net 2.0 first and than
Actually i want that, suppose i have a colorcode #FF3366. How can i examine
Actually my app is nearly so far, that some people can test it. Now
Actually I've (probably) a simple problem. So I don't know how to cast a
Actually, somewhere in the view: dif = datetime.timedelta(days=1) today = datetime.date.today() yesterday = today
Actually my previous question got me thinking and I realized that reversing a Dictionary
Actually my question is simple. I think. But unfortunately, Google can't help me this
Actually, it's gotten so messy that I'm not even sure curl is the culprit.

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.