Gets the first day of a week where day (parameter) belongs. weekStart (parameter) specifies the starting day of week.

Namespace: DayPilot.Web.Mvc.Utils
Assembly: DayPilot.Web.Mvc (in DayPilot.Web.Mvc.dll) Version: 8.0.5796.0 (8.0.5796.0)

Syntax

C#
public static DateTime FirstDayOfWeek(
	DateTime day,
	DayOfWeek weekStarts
)
Visual Basic
Public Shared Function FirstDayOfWeek ( _
	day As DateTime, _
	weekStarts As DayOfWeek _
) As DateTime
Visual C++
public:
static DateTime FirstDayOfWeek(
	DateTime day, 
	DayOfWeek weekStarts
)

Parameters

day
Type: System..::..DateTime
weekStarts
Type: System..::..DayOfWeek

Return Value

See Also