Please include the context next time so we know what you're responding to
In my last post in this thread I posted the following code:
using System.Globalization;
....
CultureInfo culture = (CultureInfo)CultureInfo.CurrentCulture.Clone();
CultureInfo uiculture = (CultureInfo)CultureInfo.CurrentUICulture.Clone();
if (day == "Monday")
{
culture.DateTimeFormat.FirstDayOfWeek = DayOfWeek.Monday;
uiculture.DateTimeFormat.FirstDayOfWeek = DayOfWeek.Monday;
}
else
{
culture.DateTimeFormat.FirstDayOfWeek = DayOfWeek.Sunday;
uiculture.DateTimeFormat.FirstDayOfWeek = DayOfWeek.Sunday;
}
System.Threading.Thread.CurrentThread.CurrentCultu re = culture;
System.Threading.Thread.CurrentThread.CurrentUICul ture = uiculture;
Is this not working? How is it not working? What results are you getting?
What results are you expecting?
/claes
<bo********@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
Hi, sorry for late replay, I am really bussy lately.
I tried this, but it does not work eather. Any other suggestion?