Describes the instance as a string.

Namespace: TeaTime
Assembly: DiscreteLogics.TeaFiles (in DiscreteLogics.TeaFiles.dll) Version: (


public string ToString(
	string 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.


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.


System..::..FormatExceptionThe 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.

See Also