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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:14:19+00:00 2026-05-17T00:14:19+00:00

how to calculate the other country time. using my local machine time in c#?

  • 0

how to calculate the other country time. using my local machine time in c#?

Example:

My system having India time and my array contains all the countries GMT time.

How to do the calculation to get the other country time?

if my time is 5.00 P.M if the country is Pakistan it should show 4.30 p.m

  • 1 1 Answer
  • 1 View
  • 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-17T00:14:19+00:00Added an answer on May 17, 2026 at 12:14 am

    Assuming you’re using .NET 3.5 or higher, you need to get the right TimeZoneInfo (e.g. by ID). From then on, it’s fairly simple – I’d suggest that you use UTC wherever it’s available, and probably DateTimeOffset rather than DateTime as that’s less ambiguous. Take your current time with DateTimeOffset.UtcNow, get the appropriate time zone to convert to, and then use TimeZoneInfo.ConvertTime(DateTimeOffset, TimeZoneInfo). That will get you the appropriate new DateTimeOffset (i.e. offset by the appropriate amount in the target time zone) which you can then format appropriately.

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

Sidebar

Related Questions

I need to calculate hours using Server time in php without any other or
I'm trying to calculate the time it takes to receive all data from a
Is there a function or any other way to calculate in C the logarithm
Using my new Android phone established a small problem: I'm living in country A
I'm trying to write this query, that would calculate the average value of all
What regex (or other technique) would help calculate or 'best-guess' the artist in a
Is there any other way in Java to calculate a power of an integer?
I need to calculate standard deviation and other stats on a large multidimensional ndarray
I wants calculate the road distance between Current location and the other location. Which
What's an efficient way to calculate the next run time of an event given

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.