ManipulateStartOf Method (DateTimeParts) |
Get the start of part from DateTime.UtcNow. E.g. StartOf(DateTimeParts.Year)
return a new DateTime at the start of the current year.
Namespace: MomentSharpAssembly: MomentSharp (in MomentSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static DateTime StartOf(
DateTimeParts part
)
Public Shared Function StartOf (
part As DateTimeParts
) As DateTime
public:
static DateTime StartOf(
DateTimeParts part
)
static member StartOf :
part : DateTimeParts -> DateTime
Parameters
- part
- Type: MomentSharpDateTimeParts
DateTimeParts
Return Value
Type:
DateTimeDateTime at the start of give
partSee Also