Suoranta.WebApp.Types Namespace
Suoranta.WebApp - Developer API

Convert..::..ToIsoTimestamp Method (DateTime, Int32)

Formats DateTime as ISO string

Namespace:  Suoranta.WebApp.Util
Assembly:  Suoranta.WebApp (in Suoranta.WebApp.dll)

Syntax


public static string ToIsoTimestamp(
	DateTime dt,
	int offset
)

Parameters

dt
Type: DateTime
offset
Type: Int32
UTC offset of dt

Return Value

Timestamp and its offset in ISO format

Exceptions


ExceptionCondition
FormatExceptionThrown when Kind of dt is inconsistent with offset.