)  ' Prints 1459 days
</code></pre>
<h1 id="astrodayofweek"><a name="AstroDayOfWeek"></a>AstroDayOfWeek</h1>
<p>Calculates the day of the week, Sunday through Monday, of a given date.</p>
<pre><code>FUNCTION AstroDayOfWeek (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 class="odd">
<td><em>nYear</em></td>
<td>A four digit year.</td>
</tr>
<tr class="even">