and 7, where 1=Sunday, 2=Monday, and so on.</p>
<pre><code>FUNCTION GetDayOfWeek () AS WORD
</code></pre>
<h1 id="getdayofyear-(coledatetime)"><a name="GetDayOfYear"></a>GetDayOfYear (COleDateTime)</h1>
<p>Returns the day of the year represented by this date/time value. Valid return values range between 1 and 366, where January 1 = 1.</p>
<pre><code>FUNCTION GetDayOfYear () AS WORD
</code></pre>
<h1 id="gethour-(coledatetime)"><a name="GetHour"></a>GetHour (COleDateTime)</h1>
<p>Returns the hour represented