FixedDate struct | QSYS API Reference Guide
Estimated reading time: 3 minutes
Holds a fixed-date value in the specified format and with the given separator.
Namespace: ASNA.QSys.Runtime Assembly: ASNA.QSys.Runtime.dll
Properties
Type | Name | Description |
---|---|---|
DateOnly | DateValue | Gets the value of this FixedDate as a DateOnly value. |
Int32 | Day | Returns the day in this FixedDate value. |
DateTimeFormat | Format | IFixedDateTime Format implementation. Returns the format for this FixedDate value. |
DateTimeDataKind | Kind | IFixedDateTime Kind implementation. Returns DateTimeDataKind.Date. |
Int32 | Length | Gets the length of the FixedDate value, given its format and separator. |
Int32 | Month | Returns the month in this FixedDate value. |
DateTimeSeparator | Separator | IFixedDateTime Separator implementation. Returns the separator for this FixedDate value. |
DateTime | Value | Gets the value of this FixedDate as a System.DateTime value. |
Object | ValueAsObject | Returns the value of this FixedDate as an object. |
Int32 | Year | Returns the year in this FixedDate value. |
Methods
Signature | Description |
---|---|
CompareTo(Object) | Compare To object. |
Convert(DateTime) | Convert to IFixedSizeType. |
ToNumericString() | Convert to numeric string. |
ToString() | Convert ToString. |
ToString(String) | Convert to String. |
ToString(DateTimeFormat, DateTimeSeparator) | Convert to string. |
int CompareTo(object obj)
Compare To object.
int CompareTo(object obj)
Parameters
Type | Parameter name | Description |
---|---|---|
Object | obj | Object to compare against. |
Returns
Type | Description |
---|---|
Int32 | A 32-bit signed integer that indicates whether this instance precedes, follows, or appears in the same position in the sort order as the obj parameter. |
IFixedSizeType<DateTime> Convert(DateTime value)
Convert to IFixedSizeType.
IFixedSizeType<DateTime> Convert(DateTime value)
Parameters
Type | Parameter name | Description |
---|---|---|
DateTime | value | DateTime value to convert. |
Returns
Type | Description |
---|---|
IFixedSizeType`1 | The IFixedSizeType result. |
string ToNumericString()
Convert to numeric string.
string ToNumericString()
string ToString()
Convert ToString.
string ToString()
string ToString(string format)
Convert to String.
string ToString(string format)
Parameters
Type | Parameter name | Description |
---|---|---|
String | format | Input format. |
Returns
Type | Description |
---|---|
String | The converted string result. |
string ToString(DateTimeFormat format, DateTimeSeparator separator)
Convert to string.
string ToString(DateTimeFormat format, DateTimeSeparator separator)
Parameters
Type | Parameter name | Description |
---|---|---|
DateTimeFormat | format | Input format. |
DateTimeSeparator | separator | Input separator. |
Returns
Type | Description |
---|---|
String | The converted string result. |