[Mono-bugs] [Bug 588165] New: CultureInfo for da-DK dosen't have the right format.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Mar 13 10:23:34 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=588165

http://bugzilla.novell.com/show_bug.cgi?id=588165#c0


           Summary: CultureInfo for da-DK dosen't have the right format.
    Classification: Mono
           Product: MonoTouch
           Version: SVN
          Platform: Other
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: gnorton at novell.com
        ReportedBy: Tom1234 at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1030 Safari/532.5

Hello,

I'm developing an app that uses different cultures and their date and time
formats.

When using the danish Culture a dot is missing after the dates number.

Using this code:
CultureInfo ci = new CultureInfo("da-DK");
Console.WriteLine(DateTime.Now.ToString("M", ci));

The output is: "13 marts" which is not correct.
The correct output should be: "13. marts"

I would be very happy for a fix or a workaround since i have to change cultures
alot.

Feel free to call me or contact by mail if you have any questions.

Regards
Tom

Reproducible: Always

Steps to Reproduce:
1. Make a new CultureInfo and set it to da-DK
2. Format a date using .ToString("M", ci);
3. Print the result to console or a label
Actual Results:  
CultureInfo ci = new CultureInfo("da-DK");
Console.WriteLine(DateTime.Now.ToString("M", ci));

Console output: 13 marts

Expected Results:  
CultureInfo ci = new CultureInfo("da-DK");
Console.WriteLine(DateTime.Now.ToString("M", ci));

Console output: 13. marts

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list