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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:31:42+00:00 2026-06-04T20:31:42+00:00

hello im mohammed from sri lanka and new to programing so i am litle

  • 0

hello im mohammed from sri lanka and new to programing so i am litle bit confused these days

So we have a server in srilanka
and we have clients are access to the website from several countries and make reservations
then the server saves the time acording to srilankan time zone so i wont store actual time
i need hep to resolve thease problems Helpme!and serve me!

EG:

client make order at 3.10am from USA
it saves 3.10am and make Oder srilankan time 3.10 am
so i want to atomatically conver to clint country time

how can i code that using C# visual studio 2010

thanks

  • 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-04T20:31:43+00:00Added an answer on June 4, 2026 at 8:31 pm

    On the client side convert the time to GMT time using DateTime.ToUniversalTime and store it in your database. Then read it converting as local time zone.

    E.g. in your code behind do something on the following lines. Code from MSDN.

    System.DateTime univDateTime = localDateTime.ToUniversalTime();
    

    to convert it back

    System.DateTime localDateTime;
    try {
        localDateTime = System.DateTime.Parse(strDateTime);
    }
    catch (System.FormatException) {
        System.Console.WriteLine("Invalid format.");
        return;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello i have this code var queue = new BlockingCollection<int>(); queue.Add(0); var producers =
hello everyone I am newto programming and I am just a little bit confused.
Hello we have an SQL server application running over a low bandwith connection. We
Hello dearest community. I have trouble in the last two days, that I can't
Hello i'm a new coder to android. I have a program that Plays Pauses
Hello There, I am new to phonegap.I am trying to record a audio clip
Hello everyone i am developing an quiz based app in android and i have
Hello there I am new to php and want to learn to write reusable
Hello i have a TextField on my scene. It haves only digits, user input
Hello I have this problem with PyQt4-dev-tools that include: * a user interface compiler

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.