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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:11:30+00:00 2026-06-13T20:11:30+00:00

WHen using the CultureInfo to render a number, #,000.00 does not literally mean place

  • 0

WHen using the CultureInfo to render a number, #,000.00 does not literally mean place a , for the thousands separator and a . for the decimal. It means use the correct character from that culture at those locations.

However, using “mm-dd-yyyy” places the month, day, year in that order regardless of culture. Is there a way to tell it I’m passing the US format but change to match the passed in culture?

More details:

CultureInfo ci = new System.Globalization.CultureInfo("de-DE");
DateTime birthday = new DateTime(1955, 9, 26);
string displayValue = BIRTHDAY.tOsTRING("M/d/yyyy", ci);
  • 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-06-13T20:11:31+00:00Added an answer on June 13, 2026 at 8:11 pm

    Use DateTimeFormatInfo.ShortDatePattern instead of hard coded string.

    var text = date1.ToString(CultureInfo.CreateSpecificCulture("fr-FR")
      .DateTimeFormat.ShortDatePattern);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to format a number using ToString(CultureInfo.InvariantCulture) and also to 5 decimal places,
I created a CultureInfo object using new CultureInfo(fr-FR). Now I have a number that
In C#, I am using CultureInfo.GetCultureInfo(myCulture) but the string variable may not come in
CultureInfo.GetCultures does not exist in the .NET API for Windows Store apps. How could
Is there a way to render a page with a specific culture using System.Net.WebClient?
I have a lot of code in a class library that does not specify
I'm trying to convert dates for example 30/12/2000 to 2000-12-30 using this code: System.Globalization.CultureInfo
I am setting the locale of my application using Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(en-GB); Thread.CurrentThread.CurrentUICulture
According to this article I know, that DateTimePicker control does not reflect CurrentUICulture So,
What is the easiest way to convert the following date created using dateTime.ToString(yyyyMMddHHmmss, CultureInfo.InvariantCulture)

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.