VBScript Time Function


Advertisements

The Time Function returns the current system time.

Syntax

Time() 

Example

<!DOCTYPE html>
<html>
   <body>
      <script language = "vbscript" type = "text/vbscript">
         document.write("Line 1: " & Time() & "<br />")
       
      </script>
   </body>
</html>

When you save it as .html and execute it in Internet Explorer, then the above script will produce the following result −

Line 1: 3:29:15 PM 
vbscript_date.htm
Advertisements