Search DaTutorials:  
HOME
VB Script Tutorials
Introduction
Reference
Tutorials

Show current date

Description:


How to show the current date.

Code:


<html>
<body>
<head>
<script type="text/vbscript">

function Showdate()

 t =  Date()
 document.write(t)

end function

</script>

</head>
<body>
<p>Today is:
<script type="text/vbscript">
Showdate()
</script>
</p>

</body>
</html>

See working example:


Keywords:

VBScript: function, Date

DHTML: document.write


     Mortgage Calculator | Magazine Subscription | Mobile Phones | Personal Loans | Buy Anything On eBay
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp