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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:56:02+00:00 2026-05-20T17:56:02+00:00

My computer regional setting is in the UK English format. I am saving the

  • 0

My computer regional setting is in the UK English format.

I am saving the date in the US format as a string from my program to SQL Sever 2008 Enterprise Edition.

But when I view the table, I see the date has been saved in the UK format . The data type of the table is nvarchar2000)

In a nutshell, I want to save the dates in the US format , irrespective of the regional settings.

Thanks
Sujay

  • 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-20T17:56:02+00:00Added an answer on May 20, 2026 at 5:56 pm

    since your saving to nvarchar then you wont be abl to control it from SQL Server,

    so i bet your chance is to change the date before saving it

    you can :

    var ci = new CultureInfo("en-US");// i think en-gb is for united kingdom but not sure
    fieldvalue = yourdate.ToString("d", ci);
    

    then you save fieldvalue instead..

    also you can use ToString("MM/DD/YYYY"); to convert date to specific format if your not sure what culture to use, but know how you want the string to be in sql server.

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

Sidebar

Related Questions

My computer runs Windows 7 X64 Enterprise Edition. I need x86 mode for my
My computer is running behind proxy. I want to access url from JavaFX. for
Computer: Windows 7 x64 bit, Visual Studio 2008 Downloaded the latest OpenCV build (2.3.3)
our computer settings has regional language is Korean, my problem is when i use
Computer Haiku How would you write a program To make them for you
My computer at home is set up to automatically download some stuff from RSS
When computer is powered on: How does it know from which instruction it needs
I'm having a weird issue concerning Microsoft SQL Compact Edition. In a Windows.Forms application,
Which computer languages will allow code that dynamically extracts a variable name from a
I have a computer that is running a single program that manages up to

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.