Manipulate Methods |
The Manipulate type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | EndOf(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.
|
![]() ![]() | EndOf(DateTime, 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.
|
![]() ![]() | SetDay |
Set the Day of this dateTime to day, leaving all other all other parts the
same.
|
![]() ![]() | SetHour |
Set the Hour of this dateTime to hour, leaving all other all other parts
the same.
|
![]() ![]() | SetMillisecond |
Set the Millisecond of this dateTime to millisecond, leaving all other all other
parts the same.
|
![]() ![]() | SetMinute |
Set the Minute of this dateTime to minute, leaving all other all other parts
the same.
|
![]() ![]() | SetMonth |
Set the Month of this dateTime to month, leaving all other all other parts
the same.
|
![]() ![]() | SetSecond |
Set the Second of this dateTime to second, leaving all other all other parts
the same.
|
![]() ![]() | SetYear |
Set the Year of this dateTime to year, leaving all other all other parts
the same.
|
![]() ![]() | StartOf(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.
|
![]() ![]() | StartOf(DateTime, DateTimeParts) |
Get the start of this dateTime at part. E.g.
DateTime.Now.StartOf(DateTimeParts.Year)
return a new DateTime at the start of the current year.
|