DateOnly Class
Namespace: Stimulsoft.System
Inheritance
Implements: IComparable
Constructors
| Constructor | Description |
|---|---|
| constructor(DateTime dateTime) |
constructor(dateTime: DateTime)
Parameters
- dateTime (DateTime)
Properties
| Property | Type | Description |
|---|---|---|
| day | any | |
maxValue static |
any | |
minValue static |
any | |
| month | any | |
now static |
any | |
| year | any |
Methods
| Method | Returns | Description |
|---|---|---|
| compareTo | number | |
| equals | boolean | |
fromDateTime static |
DateOnly | |
| getHashCode | number | |
| implements | any[] | |
parse static |
DateOnly | |
| subtract | TimeSpan | |
| toDateTime | DateTime | |
| toODate | number | |
| toString | string | |
tryParse static |
boolean |
Method Details
compareTo
compareTo(other: DateOnly): number
Parameters
- other (DateOnly)
Returns number
equals
equals(date: any): boolean
Parameters
- date (any)
Returns boolean
fromDateTime static
fromDateTime(dateTime: DateTime): DateOnly
Parameters
- dateTime (DateTime)
Returns DateOnly
getHashCode
getHashCode(): number
Returns number
implements
implements(): any[]
Returns any[]
parse static
parse(s: string): DateOnly
Parameters
- s (string)
Returns DateOnly
subtract
subtract(date: DateOnly): TimeSpan
Parameters
- date (DateOnly)
Returns TimeSpan
toDateTime
toDateTime(): DateTime
Returns DateTime
toODate
toODate(): number
Returns number
toString
toString(format: any): string
Parameters
- format (any)
Returns string
tryParse static
tryParse(s: string, refResult: { ref: DateOnly }): boolean
Parameters
- s (string)
- refResult ({ ref: DateOnly })
Returns boolean