Click or drag to resize
Calendar Enumeration
Calendar parts. Meant to emulate http://momentjs.com/docs/#/displaying/calendar-time/

Namespace: MomentSharp.Globalization
Assembly: MomentSharp (in MomentSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public enum Calendar
Members
  Member nameValueDescription
SameDay0 Text to display if both dates are on the same day, e.g. Today
NextDay1 Text to display if orginal date is tomorrow compared to referenceTime
NextWeek2 Text to display if orginal date is tomorrow compared to referenceTime
LastDay3 Text to display if orginal date is next week compared to referenceTime
LastWeek4 Text to display if orginal date is yesterday compared to referenceTime
SameElse5 Text to display if orginal date is last week compared to referenceTime
See Also