Unable to get current time using javascript : <p>Displaying only today's date unable to get time.</p>

<pre><code>&lt;script type="text/javascript"&gt;
n =  new Date();
y = n.getFullYear();
m = n.getMonth() + 1;
d = n.getDate();
document.getElementById("date").innerHTML = m + "/" + d + "/" + y;
&lt;/script&gt;

&lt;li id="date"&gt;&lt;/li&gt;
</code></pre>
