RenderDate Method (ObjectRenderer Object)
The RenderDate method renders the date portion of the supplied date/time.
Syntax
strHTML = objObjectRend.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.
- objObjectRend
- Required. This ObjectRenderer 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.