Display Current Date using Java Script

by satheeshkumar 2012-07-13 23:01:58

Display Current Date using Java Script function,

<h4>Today's Date is(dd/mm/yyyy)
<script type="text/javascript">

var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
document.write(month + "/" + day + "/" + year)

</script>
</h4>


Tagged in:

890
like
0
dislike
0
mail
flag

You must LOGIN to add comments