Constructors
constructor
-
Parameters
Properties
kind
Private momentDate
momentDate: Moment
Static MaxValue
Static MinValue
Accessors
Date
-
Returns Moment
Kind
-
TotalMilliSeconds
- get TotalMilliSeconds(): number
-
Returns number
currentUtcOffset
- get currentUtcOffset(): number
-
Returns number
Static Now
-
Methods
Add
- Add(quantity: number, unit: string): DateTime
-
Parameters
-
quantity: number
-
unit: string
CompareTo
-
Parameters
Returns number
Difference
-
Parameters
Format
- Format(formatting: string): string
-
Parameters
Returns string
ToISOString
-
Returns string
toString
-
Returns string
utcOffset
- utcOffset(value: number): void
-
Parameters
Returns void
Static Compare
-
Parameters
Returns number
Static DateTimeToXSDate
- DateTimeToXSDate(date: DateTime): string
-
Parameters
Returns string
Static DateTimeToXSDateTime
- DateTimeToXSDateTime(dateTime: DateTime): string
-
Parameters
Returns string
Static Parse
-
Parameters
-
value: any
-
Default value kind: DateTimeKind = DateTimeKind.Unspecified
DateTime - basic date time based on moment.js