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