Click or drag to resize

OleDateTime.ToString Method (IFormatProvider)

X#
Converts the value of the current DateTime object to its equivalent string representation using the formatting conventions of the current culture.

Namespace:  XSharp
Assembly:  XSharp.VO (in XSharp.VO.dll) Version: 2.21
Syntax
 VIRTUAL METHOD ToString(
	provider AS IFormatProvider
) AS STRING
Request Example View Source

Parameters

provider
Type: IFormatProvider

Return Value

Type: String
A string representation of the value of the current DateTime object.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThe date and time is outside the range of dates supported by the calendar used by the current culture.
See Also