TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
David Malinowski
NA
4
13k
CultureInfo.DateTimeFormat.FirstDayOfWeek not changing results for CultureInfo.Calendar.GetDayOfWeek(DateTime);
Dec 20 2010 11:37 AM
I need to create a billing scheme where to pay week goes Friday to Thursday.
CultureInfo
cult =
new
CultureInfo
(
"en-US"
,
true
);
Calendar
FIMCal;
cult.DateTimeFormat.FirstDayOfWeek =
DayOfWeek
.Friday;
cult.DateTimeFormat.CalendarWeekRule =
CalendarWeekRule
.FirstFullWeek;
FIMCal = cult.Calendar;
int
result = (
int
)FIMCal.GetDayOfWeek(
DateTime
.Now);
The variable "result" is assigned 1 for Monday when it should be 3. Friday should be 0 Thurday 6 and so on.
Why is the Cultureinfo not changing the DayofWeek enum???
Reply
Answers (
1
)
paging in silverlight using linq??
get value of templatefield in gridview