Get start of the week date.
Namespace: MonoSoftware.MonoX.ExtensionsAssembly: MonoX (in MonoX.dll) Version: 5.1.40.5065 (5.1.40.5065)
Syntax
C# |
---|
public static DateTime StartOfWeek(
this DateTime dateTime,
DayOfWeek startOfWeek
) |
Visual Basic |
---|
<ExtensionAttribute>
Public Shared Function StartOfWeek (
dateTime As DateTime,
startOfWeek As DayOfWeek
) As DateTime |
Visual C++ |
---|
public:
[ExtensionAttribute]
static DateTime StartOfWeek(
DateTime dateTime,
DayOfWeek startOfWeek
) |
F# |
---|
static member StartOfWeek :
dateTime : DateTime *
startOfWeek : DayOfWeek -> DateTime
|
Return Value
Type:
DateTimeStart of the week date.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DateTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also