Einhugur JSON Plugin III for Xojo

JSONDocument.ISO8601ToDateTime Method

Converts string containing ISO8601 formatted date to DateTime.

shared ISO8601ToDateTime(
   value as String,
   skipTime as Boolean) as DateTime

Parameters

value
The string to be converted.
skipTime
If set to true then time element is ignored.

Returns

DateTime
The DateTime or nil if the string was invalid as ISO8601 formatted date.

Remarks

See Also

JSONDocument Class