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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T14:57:00+00:00 2026-05-17T14:57:00+00:00

I converted my VS 2008 project into vs 2010 but kept it on .NET

  • 0

I converted my VS 2008 project into vs 2010 but kept it on .NET 3.5 framework. I don’t set my locale anywhere within the app.

I’ve got a couple on computers running windows 7 and XP and both have the region set to EN-AU.

Sometime my app returns the short date format like MM/dd/YY (EN-US). As soon as you quit it and start again it reverts to the proper format for AU(dd/mm/yy). Again I’m not setting my locale anywhere in the project. (I have some RDLC reports which have EN-US as the language though)

Any reason why this would be happening? I tried setting the Thread locale explicitly as well. But same behaviour.

  • 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-17T14:57:01+00:00Added an answer on May 17, 2026 at 2:57 pm

    This is strange.
    I would advice you not to use ToShortDate() as I have seen couple of issues from it. Instead, I recommend using following code:

    string formattedDate = someDateTime.ToString(“d”, CultureInfo.CurrentCulture);

    This basically does the same. And you can introduce constant instead of “d” for greater readability (it is short date formatting string).

    It is always good practice to pass IFormatProvider, as it works as a comment clearly documenting your assumptions (in the example above I said: this is the date string I want to present to user; if I wanted to use this date for further processing, send it via network, etc. I would use CultureInfo.InvariantCulture).

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

Sidebar

Related Questions

I've finally converted my project over to VC++ 2010 from 2008 and what a
I have a project converted from .NET 1.1 to 3.5 being developed in 2008.
I converted my visual studio solution from 2008 to 2010. A project has a
Hello, I have converted a VB 6 project to VB.NET 2008 One of the
I just converted a project from Visual Studio 2008 to 2010 and all of
I have a project in Visual Studio 2010 (converted from 2008), and I have
I converted my project from MVC 1 to MVC 2 and Visual Studio 2008
I have deployed an SSRS 2008 R2 project into our SharePoint Integration. This worked
We've just switched our main project from Visual Studio 2008 to 2010. I was
I use VS 2008 (C#) and SQLite via ADO.NET 2.0 Provider (SourceForce project). 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.