Try OpenEdge Now
skip to main content
Developing WebSpeed Applications
WebSpeed API Reference : format-datetime
 

format-datetime

This function returns a date and time string formatted according to Internet standards.

Location

web\method\cgiutils.i

Parameters

INPUT p_format AS CHARACTER
The type of format to apply. The valid values are:
*Cookie — Formats a date and time string for use with cookies, for example when specifying an expiration date with the set-cookie function.
*HTTP — Formats a date and time string for use in header information.
INPUT p_date AS DATE
The date to format.
INPUT p_time AS INTEGER
The time expressed as seconds since midnight.
INPUT p_options AS CHARACTER
Specifies how to process the date and time. Valid values are:
*Local — The date and time are local values. The function converts them to UTC values before formatting them.
*UTC — The date and time are already in UTC time. The function normalizes them to ensure the value of time is between zero and the number of seconds in one day.

Returns

CHARACTER

Notes

None

Examples

See the set-cookie function in web\method\cookies.i.

See also

convert-datetime
set-attribute-list