Is given DateTime Weekend
using System; using System.Collections.Generic; using System.Linq; using System.Text; public static class DateTimeExt { public static bool Ext_IsWeekend(this DateTime value) { return (value.DayOfWeek == DayOfWeek.Sunday || value.DayOfWeek == DayOfWeek.Saturday); } }