javascript Today() function
<p>I'd like to determine if a given date object is the same day as the current day. Below is the psuedo code.</p>

<pre><code>// date is a Date object
function (date)
{
    if (date == Today())
        alert('How are you today?');
    else
        alert('How were you last ' + date.toDateString() + '?');
}
</code></pre>

<p>How do I implement the Today() function? It doesn't have to be a function really, an equivalent solution will be just as good. Thanks.</p>

<p>[edit]
I forgot to mention. The current time (today) is local time and the date object that it will be compared with is server time, which can be anywhere in the world.</p>
