Date in JavaScript

Date Function returns current date and time.

<script type="text/javascript">
function displayDate()
{
    var currentDate=Date();
    alert(currentDate);
}
</script>


Note : Date function returns Client's System Time