Click or drag to resize
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: MomentSharp
Assembly: MomentSharp (in MomentSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static DateTime StartOf(
	DateTimeParts part
)

Parameters

part
Type: MomentSharpDateTimeParts
DateTimeParts

Return Value

Type: DateTime
DateTime at the start of give part
See Also