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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:02:37+00:00 2026-05-26T19:02:37+00:00

below is my android code by which I need to get the timestamp value(value

  • 0

below is my android code by which I need to get the timestamp value(value is coming from web server) in New York timezone. Please help me out because system is converting time to server timezone.

long startTime = Long.valueOf(appObj.getString("Unix_timestamp"))*1000;
Date fromDateObj = new java.util.Date(startTime);
SimpleDateFormat sdf = new SimpleDateFormat();

sdf.applyPattern("HH");
fromHour = Integer.valueOf(sdf.format(fromDateObj));
sdf.applyPattern("mm");
fromMin = Integer.valueOf(sdf.format(fromDateObj));

Thanks in advance….

  • 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-26T19:02:38+00:00Added an answer on May 26, 2026 at 7:02 pm

    You can specify desired timezone for SimpleDateFormat:

    sdf.setTimeZone(TimeZone.getTimeZone("EST"));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create QR code from contact info which is in MeCard format.
I have the below code which is suppose to show a list of contact
So here's some code on http://groups.google.com/group/android-developers/browse_thread/thread/16a2216b39513674 in which the poster writes that he's shortened
I am building an android app for which I need to check the sync
I need to work with REST api in android application which is created by
I need your quick assistance for the problem stated below In my android application
Here is what I am trying to do. From my Android App code I
i have created a textview with the below code: <TextView android:id=@+id/txtDescription android:layout_width=fill_parent android:layout_height=wrap_content android:textSize=16dip
I am now working on an android app in which I need to display
Using the specifications below I need to create an oauth_signature on Android. I'm looking

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.