Calendar parts.
Meant to emulate http://momentjs.com/docs/#/displaying/calendar-time/
Namespace: MomentSharp.GlobalizationAssembly: MomentSharp (in MomentSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax Public Enumeration Calendar
public enum class Calendar
Members
| Member name | Value | Description |
---|
| SameDay | 0 |
Text to display if both dates are on the same day, e.g. Today
|
| NextDay | 1 |
Text to display if orginal date is tomorrow compared to referenceTime
|
| NextWeek | 2 |
Text to display if orginal date is tomorrow compared to referenceTime
|
| LastDay | 3 |
Text to display if orginal date is next week compared to referenceTime
|
| LastWeek | 4 |
Text to display if orginal date is yesterday compared to referenceTime
|
| SameElse | 5 |
Text to display if orginal date is last week compared to referenceTime
|
See Also