DayOfWeek - local names

DayOfWeek - local names

am 15.10.2007 20:29:07 von keld DOT soerensen

When I use

Calendar1.SelectedDate.DayOfWeek

I see the name of the day - but in englich - I want it in danish !

How can I do that ?

Best regards
KSor, Denmark

Re: DayOfWeek - local names

am 16.10.2007 05:52:46 von notmyfirstname

KSO,

Are you sure that your system OS is set to the Danisch culture and that you
have loaded a Danish .Net version with when needed the right language
additions?

Cor

Re: DayOfWeek - local names

am 16.10.2007 06:45:01 von keld DOT soerensen

Hi Cor

1) My OS IS set to "danish"
2) There is NO danish version of the C#

but I have found out it should be:

Calendar1.SelectedDate.ToString("dddd", CultureInfo.CurrentUICulture)

/KSor


"Cor Ligthert[MVP]" wrote:

> KSO,
>
> Are you sure that your system OS is set to the Danisch culture and that you
> have loaded a Danish .Net version with when needed the right language
> additions?
>
> Cor
>

Re: DayOfWeek - local names

am 16.10.2007 19:31:06 von notmyfirstname

KSO,

Not a Danish VS or C#. A Danish .Net version (1.1 or 2.0 etc). That exist
for Dutch, I cannot imagen that it does not exist for Danish. Although in
past it did not exist for Slovens (whatever you write that in English or
Danish).

Cor