Describes the instance as a string.
Namespace: TeaTimeAssembly: DiscreteLogics.TeaFiles (in DiscreteLogics.TeaFiles.dll) Version: 1.0.0.16 (1.0.0.16)
Syntax
Parameters
- format
- Type: System..::..String
A standard or custom date and time format string.
Return Value
A string representation of value of the current DateTime object as specified by format. If the date time value is invalid, the text "invalid" is returned.Remarks
Time holds an underlying Int64 value ticks that is converted to a DateTime value and then formatted as a String. This conversion might fail if the tick value is out of range.Exceptions
Exception | Condition |
---|---|
System..::..FormatException | The length of format is 1, and it is not one of the format specifier characters defined for DateTimeFormatInfo.-or- format does not contain a valid custom format pattern. |