EssentialsDateTime.ToString method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Time
Assembly Skybrud.Essentials.dll

ToString()

Virtual

Converts the value of the current EssentialsDateTime to its equivalent string representation.

public virtual string ToString()

Returns

A string representation of value of the current EssentialsDateTime object.

ToString(IFormatProvider)

Converts the value of the current EssentialsDateTime to its equivalent string representation using the specified provider.

public string ToString(IFormatProvider provider)

Parameters

provider IFormatProvider

An object that supplies culture-specific formatting information.

Returns

A string representation of value of the current EssentialsDateTime object as specified by provider.

ToString(string)

Converts the value of the current EssentialsDateTime to its equivalent string representation using the specified format.

public string ToString(string format)

Parameters

format String

A standard or custom date and time format string.

Returns

A string representation of value of the current EssentialsDateTime object as specified by format.

ToString(string, IFormatProvider)

Converts the value of the current EssentialsDateTime to its equivalent string representation using the specified format and provider.

public string ToString(string format, IFormatProvider provider)

Parameters

format String

A standard or custom date and time format string.

provider IFormatProvider

An object that supplies culture-specific formatting information.

Returns

A string representation of value of the current EssentialsDateTime object as specified by format and provider.