Einhugur JSON Plugin III for Xojo

JSONDocument.DateTimeToISO8601 Method

Converts DateTime to ISO-8601 date time which is suitable for JSON.

shared DateTimeToISO8601(
   value as DateTime) as String

Parameters

value
The date and time to convert.

Returns

String

Remarks

JSON has no Date types and normally stores them in String type.

See Also

JSONDocument Class