VBScript Date Function


Advertisements

The Function returns the current system Date.

Syntax

date()

Example

<!DOCTYPE html>
<html>
   <body>
      <script language = "vbscript" type = "text/vbscript">
         a = date()
         document.write("The Value of a : " & a)
       
      </script>
   </body>
</html>

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

The Value of a : 19/07/2013 
vbscript_date.htm
Advertisements