Javascript date format issues
<p>I am trying to format a date in js with "mmdd" format as the final result.</p>

<p>If I set <code>var s = ""</code> i reach my alert, but if i do not, the code does not run.</p>

<p>any pointers would be appreciated!</p>

<pre><code>            function stateChange(e){
                var p = (document.getElementById("stateSelect").value);
                var t = new Date();
                var s = t.format("mmdd");
                alert(s);
            }
</code></pre>
