Release 10.1A: OpenEdge Development:
Web Services

> ## DATE

> Table D–2 describes the supported castings in each 4GL parameter mode (`INPUT` and `OUTPUT`) between the 4GL `DATE` type and XML Schema.

> Table D–2: 4GL data type cast—DATE
> For this XML Schema type... | In this 4GL parameter mode... | OpenEdge...
> --- | --- | ---
>     string
>     normalizedString
>     INPUT
> | Serializes the 4GL parameter into the SOAP request message according to the XML Schema serialization rules.
>     OUTPUT
> | De-serializes the string value from the SOAP response message into the 4GL parameter as if the 4GL `DATE( )` function was called on the string in an OpenEdge session started with the `–d ymd` startup parameter.
>     dateTime
>     INPUT
> | Serializes the 4GL parameter according to the XML Schema serialization rules, with the time assumed to be 12:00 midnight local time.
>     OUTPUT
> | De-serializes the XML Schema value into the 4GL parameter according to the XML Schema serialization rules with the value set to the local time adjusted from any time and time zone information (which is stripped away). If there is no time and time zone information the value is stored as is. If you need to maintain the time information, use the 4GL `DATETIME` data type. If you need to maintain the time zone information, use the 4GL `DATETIME-TZ` data type.
>     date
>     INPUT
> | Serializes the 4GL parameter into the SOAP request message according to the XML Schema serialization rules with no time zone.
>     OUTPUT
> | De-serializes the XML Schema value into the 4GL parameter with the date adjusted for any time zone information and the time zone information stripped away. If you need to maintain the time zone information, use the 4GL `DATETIME-TZ` data type.

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095