Skip to content

82362197 79f1 0f84 5b9f ea832d90cdc9

Axel Kesseler edited this page Mar 1, 2023 · 18 revisions

TypeFormatterExtension.ToDateTimeString Method

This method converts the value into its date/time representation.

Namespace: Plexdata.LogWriter.Internals.Extensions
Assembly: Plexdata.LogWriter.Abstraction (in Plexdata.LogWriter.Abstraction.dll) Version: 1.0.7.1

Syntax

C#

private static string ToDateTimeString(
	Object value,
	string format,
	IFormatProvider provider
)

Parameters

 

value
Type: System.Object
The value to be converted.
format
Type: System.String
The format to be used.
provider
Type: System.IFormatProvider
The format provider to be used.

Return Value

Type: String
The string representation of provided value.

Exceptions

 

Exception Condition
Exception Any other exception thrown by Convert is possible as well.

Remarks

The value is converted by using ToDateTime(Object, IFormatProvider) as well as ToString(IFormatProvider) respectively ToString(String, IFormatProvider) if format is not null.

See Also

Reference

TypeFormatterExtension Class
Plexdata.LogWriter.Internals.Extensions Namespace

Clone this wiki locally