parseDateXMI (I18n - JavaScript)

This method tries to analyze the given string, by applying the XMI date format. The XMI format is the following : yyyy-MM-ddTHH:mm:ssZ, where T is the date and time separator, and where Z is the time zone indication.

UTC is indicated by the single letter 'Z', another time zone is indicated by a sign followed by HH:mm. For example, to indicate 1:20 pm on May the 31st, 1999 for Eastern Standard Time which is 5 hours behind Coordinated Universal Time (UTC), the XMI date string is : 1999-05-31T13:20:00-05:00. If the time zone indicated in the string is different from XSP server time zone, the date is converted to be returned in XSP server time zone.

Defined in

I18n

Syntax

parseDateXMI(date:string) : Date
Parameters Description
date The string to parse.
Return value Description
Date A Date object (in the XSP server TZ) that corresponds to the given string.