Returns the start of the month that contains the specified instant.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static DateTime StartOfMonth(
this DateTime date
)
<ExtensionAttribute>
Public Shared Function StartOfMonth (
date As DateTime
) As DateTime
public:
[ExtensionAttribute]
static DateTime StartOfMonth(
DateTime date
)
[<ExtensionAttribute>]
static member StartOfMonth :
date : DateTime -> DateTime
Parameters
- date
- Type: SystemDateTime
An instant.
Return Value
Type:
DateTimeThe instant at the start of the month that contains
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).
Reference