code>SUB ToLocalTime
</code></pre>
<h1 id="weeknumber"><a name="WeekNumber"></a>WeekNumber</h1>
<p>Returns the week number for a given date. The year must be a 4 digit year. If a parameter is omitted, the value stored in this <strong>CPowerTime</strong> object is assumed.</p>
<pre><code>FUNCTION WeekNumber (BYVAL nYear AS LONG = 0, BYVAL nMonth AS LONG = 0, BYVAL nDay AS LONG = 0) AS LONG
</code></pre>
<table>
<thead>
<tr class="header">
<th>Parameter</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr cla