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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:05:53+00:00 2026-06-18T08:05:53+00:00

This may be a very basic question, but i could’nt find any satisfactory answers.Hope

  • 0

This may be a very basic question, but i could’nt find any satisfactory answers.Hope my doubts gets clear on stackoverflow.

Q 1. Suppose i have time in a different timezone and i want to convert it to a different timezone, what is the way to do it in Java?

Q 2. Is there any way to get timezone using JavaScript?

Q 3. A timezone is just the representation of time in a particular zone, but actually every zone is at the same time,just representation wise it may be different depending on geographical conditions. – Is this understanding Correct?

possible duplicate link

  • 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-18T08:05:54+00:00Added an answer on June 18, 2026 at 8:05 am

    Suppose i have time in a different timezone and i want to convert it to a different timezone, what is the way to do it in Java?

    Create a formatter and set the timezone in there.

    Internally, java.util.Date just stores milliseconds since the Epoch in the UTC timezone.
    When you use Date.toString() or new SimpleDateFormat() without a timezone, then the default timezone of your VM is used.

    So in a sense, Java always converts to your current/default timezone (unless you happen to be in UTC).

    Is there any way to get timezone using Java Script?

    It depends. You can use getTimezoneOffset() but that gives you only the offset. There is no API to get the client’s OSs timezone ID (like UTC, Europe/Berlin, etc.)

    A timezone is just the representation of time…

    Not really. See above.

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

Sidebar

Related Questions

This may be a basic question, but I could not find an answer for
This may be a very basic question, but it still gets me confused (and
This may be a very basic question. But it is not very clear to
This may be a very basic question but somehow it got me tricked... when
This may sound like a very basic question to some of you but I
This may be a very basic question, but is it possible to post a
This may be very basic question. But I was wondering about different nancyfx hosting
This may be a very basic question. But I am finding it confusing with
I know this may be a very basic question, sorry if it is but
this may be a very basic question but I haven't used Linq much so

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.