Hi,
An instance of DateTime has DayOfWeek and Hour properties you might use.
DateTime dt = DateTime.Now()
if (dt.DayOfWeek == DayOfWeek.Friday && dt.Hour >= 18 || dt.DayOfWeek ==
DayOfWeek.Saturday || dt.DayOfWeek ==DayOfWeek.Sunday && dt.Hour <= 21)
{
}
--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com
"Simple Simon" <re***@newsgroup.only> wrote in message
news:92********************************@4ax.com...
Hi all,
I'm struggling with an elegant way to figure out if a DateTime falls
between any Firday @ 6pm and Sunday @ 9pm.
For example:
If i want to fax a message b/w Fri 6pm and Sun 9pm on any given time
on any given day.
ne1?
~Gordon