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

We've just switched our main project from Visual Studio 2008 to 2010. I was
I'm tyring to convert a MSVC project from VS 2005 to VS 2008. It
How do I properly convert two columns from SQL (2008) using Linq into a
Recently I converted a Swing application to Webstart. The process was pretty straightforward, but
I have a VS 2008 Setup Project created. I am trying to install this
hello all i have code from open source project that im integrating into my
Possible Duplicate: how to convert a VS 2010 soultion back to 2008 I have
Given a string as below, I need to convert: 1 Dec 2008 06:43:00 +0100
I want to convert for example a particular date 12-11-2008 11:33:04.510 to UTC datetime.
I have successfully connected to an Oracle database (10g) from C# (Visual Studio 2008)

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.