This is not good. Sunday is the first day of the week here in the U.S. (I
think Monday is in Europe) so I don't think that will work.
We may have to hord-code it ourselves by locale. To that point - is it
Saturday/Sunday in PRC?

Signature
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
Hi Dave,
Yes you are right, in PRC , the Saturday/Sunday is the Weekend. and
Monday-Friday is the Weekdays.
If you have any other concern, please feel free to let me know.
Best regards,
Peter Huang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Steven Cheng[MSFT] - 28 Aug 2006 14:37 GMT
Hello Dave,
Just a little add-ons, yes, there is no direct method in .net FCL to
determine whether a given day is weekend (according to a given Calendar).
However, you can still easily do the work by using the
System.Globalization.Calendar and its derived classes. For example:
============================
System.Globalization.Calendar calendar = new
System.Globalization.GregorianCalendar(System.Globalization.GregorianCalenda
rTypes.Localized);
Response.Write("<br/>today(Localized): " +
calendar.GetDayOfWeek(DateTime.Now));
calendar = new
System.Globalization.GregorianCalendar(System.Globalization.GregorianCalenda
rTypes.USEnglish);
Response.Write("<br/>today(USEnglish): " +
calendar.GetDayOfWeek(DateTime.Now));
calendar = new
System.Globalization.GregorianCalendar(System.Globalization.GregorianCalenda
rTypes.MiddleEastFrench);
Response.Write("<br/>today(MIDDLEEAST): " +
calendar.GetDayOfWeek(DateTime.Now));
============================
After you get the "DayOfWeek" value, you can determine whether it is
weekend.
Hope this helps.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.