, BYREF dt2 AS COleDateTime) AS BOOLEAN
</code></pre>
<h1 id="format-(coledatetime)"><a name="Format"></a>Format (COleDateTime)</h1>
<p>Converts a <strong>COleDateTime</strong> to a formatted string.</p>
<pre><code>FUNCTION Format (BYREF wszFmt AS WSTRING) AS CWSTR
</code></pre>
<table>
<thead>
<tr class="header">
<th>Parameter</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><em>wszFmt</em></td>
<td>A format string which contains special formatting codes that are preceded by a percent 