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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:35:55+00:00 2026-05-28T07:35:55+00:00

I have a Wpf Browser application coded in C#, the problem is that Date.Time.Now

  • 0

I have a Wpf Browser application coded in C#, the problem is that Date.Time.Now returns the time on the client pc, and is unreliable, how can a obtain the time from my application server or my MSSQL server?

  • 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-28T07:35:56+00:00Added an answer on May 28, 2026 at 7:35 am

    If you are wanting the Servers Current TimeStamp you will need to create a SQL Query and return it to the application that you are using to show on the Client Machine.

    you can try DateTime.UtcNow as well or

    Look at some of these examples

    The following examples use the six SQL Server system functions that return current date and time to return the date, time or both. The values are returned in series; therefore, their fractional seconds might be different.
    A. Getting the current system date and time
    
    SELECT 'SYSDATETIME()      ', SYSDATETIME();
    SELECT 'SYSDATETIMEOFFSET()', SYSDATETIMEOFFSET();
    SELECT 'SYSUTCDATETIME()   ', SYSUTCDATETIME();
    SELECT 'CURRENT_TIMESTAMP  ', CURRENT_TIMESTAMP;
    SELECT 'GETDATE()          ', GETDATE();
    SELECT 'GETUTCDATE()       ', GETUTCDATE();
    /* Returned:
    SYSDATETIME()            2007-05-03 18:34:11.9351421
    SYSDATETIMEOFFSET()      2007-05-03 18:34:11.9351421 -07:00
    SYSUTCDATETIME()         2007-05-04 01:34:11.9351421
    CURRENT_TIMESTAMP        2007-05-03 18:34:11.933
    GETDATE()                2007-05-03 18:34:11.933
    GETUTCDATE()             2007-05-04 01:34:11.933
    */
    
    B. Getting the current system date
    
    SELECT 'SYSDATETIME()      ', CONVERT (date, SYSDATETIME());
    SELECT 'SYSDATETIMEOFFSET()', CONVERT (date, SYSDATETIMEOFFSET());
    SELECT 'SYSUTCDATETIME()   ', CONVERT (date, SYSUTCDATETIME());
    SELECT 'CURRENT_TIMESTAMP  ', CONVERT (date, CURRENT_TIMESTAMP);
    SELECT 'GETDATE()          ', CONVERT (date, GETDATE());
    SELECT 'GETUTCDATE()       ', CONVERT (date, GETUTCDATE());
    
    /* Returned: 
    SYSDATETIME()            2007-05-03
    SYSDATETIMEOFFSET()      2007-05-03
    SYSUTCDATETIME()         2007-05-04
    CURRENT_TIMESTAMP        2007-05-03
    GETDATE()                2007-05-03
    GETUTCDATE()             2007-05-04
    */
    
    C. Getting the current system time
    
    SELECT 'SYSDATETIME()      ', CONVERT (time, SYSDATETIME());
    SELECT 'SYSDATETIMEOFFSET()', CONVERT (time, SYSDATETIMEOFFSET());
    SELECT 'SYSUTCDATETIME()   ', CONVERT (time, SYSUTCDATETIME());
    SELECT 'CURRENT_TIMESTAMP  ', CONVERT (time, CURRENT_TIMESTAMP);
    SELECT 'GETDATE()          ', CONVERT (time, GETDATE());
    SELECT 'GETUTCDATE()       ', CONVERT (time, GETUTCDATE());
    /* Returned
    SYSDATETIME()            18:25:01.6958841
    SYSDATETIMEOFFSET()      18:25:01.6958841
    SYSUTCDATETIME()         01:25:01.6958841
    CURRENT_TIMESTAMP        18:25:01.6930000
    GETDATE()                18:25:01.6930000
    GETUTCDATE()             01:25:01.6930000
    */
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have googled some time now trying to find a good sample application that
I have a C# WPF application with a web browser control (System.Windows.Controls.WebBrowser) called wB.
I am facing a problem with one of my XBAP (WPF Browser application) projects:
I have a WPF Browser application, written in C#. In which have a process
We have a WPF application that we want to convert to Silverlight. I understand
I have a WPF Browser Application consisting mostly of wpf pages which I'm developing
Can an hosted WPF window in the web browser access the client's clipboard in
I have a WPF application that we have integrated credit card processing into. We're
I have WPF Span that is used as a source to a TextBlock. I
I have WPF Application where I have One main form and other user controls

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.