Declaration
public static string ToIsoString(
this DateTime datetime,
IsoDatePrecision precision = IsoDatePrecision.Seconds,
IsoDateFormat format = IsoDateFormat.HumanReadable,
bool includeTimezone = false
)Summary
Returns a string representation of the date/time in an ISO-8601 compatible (or very close) format.
Parameters
| this DateTime | datetime | Date/time to convert. |
| IsoDatePrecision | precision | Which date/time components are to be included. The values are truncated, not rounded. |
| IsoDateFormat | format | One of the several pre-defined formats to use. |
| bool | includeTimezone | Specifies whether a suffix indicating date/time kind (local/utc/unspecified) and, for local times, a UTC offset, is appended. |