Click or drag to resize
Moment Methods

The Moment type exposes the following members.

Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodCalendar(DateTime)Overloaded.
Will format a date with different strings depending on how close to referenceTime's date (today by default) the date is. Emulates: http://momentjs.com/docs/#/displaying/calendar-time/
(Defined by Display.)
Public Extension MethodCalendar(Moment)Overloaded.
Will format a date with different strings depending on how close to referenceTime's date (today by default) the date is. Emulates: http://momentjs.com/docs/#/displaying/calendar-time/
(Defined by Display.)
Public Extension MethodDateTime
Convert this moment object to a DateTime
(Defined by Parse.)
Public Extension MethodDaysInMonth
Get the number of days in this moment.
(Defined by Display.)
Public Extension MethodFrom
moment([2007, 0, 29]).fromNow(); // 4 years ago moment([2007, 0, 29]).fromNow(showSuffix: false); // 4 years Emulates http://momentjs.com/docs/#/displaying/fromnow/
(Defined by Display.)
Top
See Also