RenderDate Method (ContainerRenderer Object)

RenderDate Method (ContainerRenderer Object)

Important  The Collaboration Data Objects (CDO) 1.2.1 Rendering objects are not installed by or supported for use with Exchange Server 2003 or later.

The RenderDate method renders the date portion of the supplied date/time.

Syntax

strHTML = objContRend.RenderDate(varDate, varFormat [, varResponseObject] )

strHTML

On successful return, contains a string representing the date. However, if the varResponseObject parameter is supplied, RenderDate returns a value of Empty.

objContRend

Required. This ContainerRenderer object.

varDate

Required. Variant (vbDate format). The date/time to be rendered as a date.

varFormat

Required. String. The format picture string to use for the date output.

varResponseObject

Optional. Object. An Active Server response object used to accumulate HTML output to send to the browser. This parameter is used primarily in ASP applications. If varResponseObject is not supplied, the output is written to strHTML.

Remarks

The RenderDate method ignores the time component of the vbDate format. You can render the time component with the RenderTime method.

The varFormat parameter specifies a picture for the output. Its contents are defined in the Win32® function GetDateFormat.

See Also

Concepts

ContainerRenderer Object