Einhugur JSON Plugin III for Xojo

JSONDocument.DateToISO8601 Method

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

shared DateToISO8601(
   value as DateTime) as String

Parameters

value
The date to convert.

Returns

String

Remarks

In this variation time component of the DateTime are ignored.

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

See Also

JSONDocument Class