VBScript (2)
VBScript (2)
• <script type="text/vbscript">
• document.write("Today's day is " &
WeekdayName(weekday(date)))
• document.write("<br>")
• document.write("The month is " &
MonthName(month(date)))
• </script>
• </body>
• </html>
Date and Time Functions
Display date and time
• <html>
• <body>
• <script type="text/vbscript">
• document.write("Today's date is " & date())
• document.write("<br >")
• document.write("The time is " & time())
• </script>
• </body>
• </html>
• Example
• JavaScript:
<script type="text/javascript">
<!--
document.write("Hello World!")
//-->
</script>
• VBScript:
<script type="text/vbscript">
<!--
document.write("Hello World!")
'-->
</script>