Assigning variables to the Date function
<p>I'm trying to use the date function and set what a user has entered via a prompt into it. I'm not sure what I'm doing wrong:</p>

<pre><code>d = new Date ();
var birthYearD = birthYear.getFullYear();
var birthMonthD = birthMonth.getMonth() + 1;
var birthDayD = birthDay.getDate();
alert(BirthDayD + "/" + birthMonthD + "/" + birthYearD);
alert(d);
</code></pre>

<p>I need to assign these values to one variable also.</p>
