RenderDate Method (ObjectRenderer Object)

RenderDate Method (ObjectRenderer 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.


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


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


Required. This ObjectRenderer object.


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


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


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.


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


ObjectRenderer Object