Home > @i2analyze/notebook-sdk > app > IValueFactory > createLocalDate
app.IValueFactory.createLocalDate() method
Creates a local date object (that does not have a time or a time zone) from an ISO 8601 string ('yyyy-mm-dd').
Signature:
createLocalDate(iso8601: string): data.ILocalDate;
Introduced: version 1.1
Parameters
Parameter | Type | Description |
---|---|---|
iso8601 | string | 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.