M,
In addition to the other comments.
DateTime.DayOfWeek returns an enum, enums unfortunately are not localized.
http://msdn.microsoft.com/library/de...classtopic.asp
Fortunately! You should be able to use a custom date format of either "ddd"
(abbreviated) or "dddd" (full) to get localized day names:
dt.ToString("dddd")
For details on custom datetime formats see:
http://msdn.microsoft.com/library/de...matstrings.asp
For information on formatting in .NET in general see:
http://msdn.microsoft.com/library/de...ttingtypes.asp
Hope this helps
Jay
"M" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I have code like
> dt.DayOfWeek.ToString(CultureInfo.CurrentCulture)
> where dt is a DateTime object.
>
> I get something like "Sunday", "Monday", etc... while I'm expecting it to
> be in French. I have a bilingual app in English and French. I don't have
> any problem elsewhere, like when outputting the month for example, but
> DayOfWeek is not working as I expected.
>
> Any help is appreciated.
>
> Thanks.
>