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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:27:24+00:00 2026-05-17T02:27:24+00:00

I have a great problem and I don’t know how to solve it I

  • 0

I have a great problem and I don’t know how to solve it

I have created a web application and host it in USA server , and the users who access this web application from Egypt

The problem that i’m using DateTime.Now method inside the application and this method return the time of USA server not the time of the machine that use it in Egypt

How can i solve this problem ? please help me as soon as you can

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-17T02:27:24+00:00Added an answer on May 17, 2026 at 2:27 am

    Well, you could start off by using DateTime.UtcNow, transferring that to the client, and then performing the relevant time zone conversions at the client. That’s usually a reasonable way of working – so long as you can do the processing at the client (e.g. in JavaScript).

    Alternatively, ask the user their time zone so you can serve pages which use the local time, using TimeZoneInfo. Of course if you know all your users are in Egypt you could potentially just hard-code that.

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

Sidebar

Related Questions

I have an application that works great on my development workstation but fails when
I have created an SSIS package and it works great on my dev machine.
I'm generating a PDF from a Java application. (And works great) the problem is
I have developed sort of a Server Explorer as a module for our web
1st post on stackoverflow, hope to have great feedback :) I'm currently trying to
I have a great deal of data to keep synchronized over 4 or 5
In my Java development I have had great benefit from the Jad/JadClipse decompiler. It
Answers provided have all been great, I mentioned in the comments of Alnitak's answer
I have found jQuery to be a great tool to simplify my MVC Views.
I have a python client which pushes a great deal of data through the

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.