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

  • Home
  • SEARCH
  • 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 4240378
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T03:09:24+00:00 2026-05-21T03:09:24+00:00

I am trying to get a calendar object with the a specific time tomorrow

  • 0

I am trying to get a calendar object with the a specific time tomorrow in a specific time zone (not the time zone the device is in). In the example below I want to get 12:15am in Central time zone tomorrow not matter where in the world the device is located.

First question, is this the best way to do this?

Second question, how should I deal with daylight savings. I am only dealing with the 4 continental US time zones and I can assume that I want to adjust for daylight savings time.

Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("GMT"), Locale.getDefault());
calendar.add(Calendar.DATE, 1);
calendar.set(Calendar.HOUR_OF_DAY, 0);
calendar.add(Calendar.HOUR_OF_DAY, 6); //Central time zone
calendar.set(Calendar.MINUTE, 0);
calendar.set(Calendar.SECOND, 0);
calendar.set(Calendar.MILLISECOND, 0);
calendar.add(Calendar.MINUTE, 15);
  • 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-21T03:09:25+00:00Added an answer on May 21, 2026 at 3:09 am
    Calendar calendar =
       Calendar.getInstance(
           TimeZone.getTimeZone("America/Chicago"),
           Locale.getDefault()
       );
    
    calendar.set( Calendar.HOUR_OF_DAY, 0 );
    calendar.set( Calendar.MINUTE, 15 );
    calendar.set( Calendar.SECOND, 0 );
    calendar.set( Calendar.MILLISECOND, 0 );
    
    calendar.add( Calendar.DAY_OF_MONTH, 1 );
    

    The best way to do this is to use JodaTime, but I see that you have put android tag, so Calendar is probably your only option.

    For a second question. java.util.Calendar handles Daylight to Standard time conversion.

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

Sidebar

Related Questions

I get this error: System.Reflection.TargetException: Object does not match target type. when trying to
I am trying to get current time in specific time zones. I tried following
Trying to get this example working from http://www.munna.shatkotha.com/blog/post/2008/10/26/Light-box-effect-with-WPF.aspx However, I can't seem to get
I am trying to get Data Type (Body Format) of Mail,Calendar e.t.c. Body. Getting
I'm playing around with the jQuery Week Calendar and am trying to get this
I'm trying to get a database query which is an object converted to an
I'm trying to get several informations from google calendar's API in JAVA. While trying
I am trying get Javascript popup calendar control to work which doesnt work. I
I'm trying to get a session token to use the Google Calendar API using
I am trying to get my script to generate an iCalendar, but mac calendar

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.