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