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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:29:48+00:00 2026-05-24T20:29:48+00:00

We set up a server wit the en-US culture by mistake. Later I changed

  • 0

We set up a server wit the en-US culture by mistake. Later I changed the regional settings, the locale, and the IIS globalisation to en-GB.

However, I’m having a problem with a Windows service I’ve written. It’s still using the US format whenever DateTime.ToString() is done. I know I can specify the culture I want the string to be in, but I don’t want to change all my code. It should just use the UK format because it’s changed everywhere in the machine settings.

Maybe there’s a setting I’ve missed? Does anyone have any suggestions apart from changing the code?

  • 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-24T20:29:48+00:00Added an answer on May 24, 2026 at 8:29 pm

    When you change the regional settings using Control Panel, you need to check the checkbox “Apply all settings to the current user account and to the default user profile“. In XP this is on the Advanced tab of Regional and Language Options.

    Your Windows Service is presumably running under an account without a profile (e.g. LocalSystem) so will use the default user profile settings.

    You can also inspect the regional settings for the default user profile using RegEdit – they’re under the registry key HKEY_USERS\.DEFAULT\Control Panel\International.

    Nevertheless I would consider changing the code – a Windows Service should generally be agnostic about the machine’s culture, and you’ll be avoiding maintenance headaches down the line.

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

Sidebar

Related Questions

I have a server set up with IIS, and my site has some pages
Using Sinatra in Ruby you can set the server's settings by doing: set :myvariable,
I want to set my server to automatically build my application upon commit on
I need to set some server specific variables in a rails application that will
We've got VisualSVN Server set up as our Subversion server on Windows, and we
I have a SVNSERVE server set up to host multiple repositories. Short question here
I basically have a server set up and I'm accepting new clients(UNIX) and i'm
At my office we have an SVN server set up and I'd like to
In an Intranet environment, I have an FTP server set up for publishing files
I had Managed SMTP server configurations in IIS to send email through asp as

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.