Iso8601Utils.ToString method

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

ToString(DateTime)

Static

Converts the specified timestamp to a string representation as specified by the ISO 8601 format.

public static string ToString(DateTime timestamp)

Parameters

timestamp DateTime

The timestamp to be converted.

Returns

The timestamp formatted as a ISO 8601 date string.

ToString(DateTimeOffset)

Static

Converts the specified timestamp to a string representation as specified by the ISO 8601 format.

public static string ToString(DateTimeOffset timestamp)

Parameters

timestamp DateTimeOffset

The timestamp to be converted.

Returns

The timestamp formatted as a ISO 8601 date string.