Click or drag to resize
Manipulate Class
Emulating http://momentjs.com/docs/#/manipulating/
Inheritance Hierarchy
SystemObject
  MomentSharpManipulate

Namespace: MomentSharp
Assembly: MomentSharp (in MomentSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static class Manipulate

The Manipulate type exposes the following members.

Methods
  NameDescription
Public methodStatic memberEndOf(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.
Public methodStatic memberEndOf(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.
Public methodStatic memberSetDay
Set the Day of this dateTime to day, leaving all other all other parts the same.
Public methodStatic memberSetHour
Set the Hour of this dateTime to hour, leaving all other all other parts the same.
Public methodStatic memberSetMillisecond
Set the Millisecond of this dateTime to millisecond, leaving all other all other parts the same.
Public methodStatic memberSetMinute
Set the Minute of this dateTime to minute, leaving all other all other parts the same.
Public methodStatic memberSetMonth
Set the Month of this dateTime to month, leaving all other all other parts the same.
Public methodStatic memberSetSecond
Set the Second of this dateTime to second, leaving all other all other parts the same.
Public methodStatic memberSetYear
Set the Year of this dateTime to year, leaving all other all other parts the same.
Public methodStatic memberStartOf(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.
Public methodStatic memberStartOf(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.
Top
See Also