Home > @i2analyze/i2connect > data > createLocalDateTime
data.createLocalDateTime() function
Creates a local date-time object, which does not have a time zone, from an ISO 8601 string ('yyyy-mm-ddThh:mm:ss' or 'yyyy-mm-ddThh:mm:ss.sss').
Signature:
function createLocalDateTime(iso8601: ISO8601LocalDateTime): ILocalDateTime;
Introduced: API version 2.0
Parameters
Parameter | Type | Description |
---|---|---|
iso8601 | ISO8601LocalDateTime | An ISO 8601-formatted string that represents the date and time. |
Returns:
The new local date-time object.
Exceptions
Error
if the string was not in valid ISO 8601 format.