Skip to main content
Version: V2 (Ignition 8.1)

tamaki.mes.utils.isoInstantStringToDate

Description

Parses an ISO-8601 instant string such as "2024-05-21T17:13:00Z" into a Date. The T separator is replaced with a space and the trailing Z is removed before the value is parsed with system.date.parse. Returns None if date is empty or None.

Syntax

tamaki.mes.utils.isoInstantStringToDate(date)

Parameters

ParameterTypeNullableDescription
dateStringTrueAn ISO-8601 instant string (for example 2024-05-21T17:13:00Z).

Returns

A Date, or None if date is empty or None.

Code Examples

d = tamaki.mes.utils.isoInstantStringToDate("2024-05-21T17:13:00Z")
print(d)