TimeUtils.ToIso8601 method

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

ToIso8601(DateTime)

Static

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

public static string ToIso8601(DateTime timestamp)

Parameters

timestamp DateTime

The timestamp to be converted.

Returns

The timestamp formatted as a ISO 8601 date string.

ToIso8601(DateTimeOffset)

Static

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

public static string ToIso8601(DateTimeOffset timestamp)

Parameters

timestamp DateTimeOffset

The timestamp to be converted.

Returns

The timestamp formatted as a ISO 8601 date string.

ToIso8601(EssentialsDateTime)

Static

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

public static string ToIso8601(EssentialsDateTime timestamp)

Parameters

timestamp EssentialsDateTime

The timestamp to be converted.

Returns

The timestamp formatted as a ISO 8601 date string.