Converts a date or date/time value to the date format used in the Internet to define the cookie validity date.
This function is provided merely for reasons of downward compatibility.
Syntax
cDate = Response. CookieDate( tDate|dDate )
Parameter
tDate | dDate
The transmitted value may be a date or a date/time value. The transmitted value must be valid and must not be empty or NIL, as that would trigger an error. If a date is transmitted, the current time of the server will be inserted in the time component. We therefore recommend the use of a date/time value at all times.
Return value
A date/time value is returned as a character string. The time is always displayed in the 24-hour format. Thus, at the time of this writing, code like this
<%
? Response. CookieDate ( DATE()+1 )
%>
would create the following output
Sat, 13-Mar-2004 22:36:45 GMT
In contrast to the format defined by RFC 1123 days, month and year are separated by minus signs rather than blanks.
Note
Response.CookieDate() corresponds to the function FOX.CookieDate() of AFP 2.x. In normal circumstances you will never need to call this function yourself since in all cookie management functions you can enter a date or a date/time value for the cookie validity date.
See also
Response.Cookies() | Response.AddCookie() | Response.Cookie Collection