VBScript Date Function

VBScript Date

VBScript Date() function returns the current system Date.

Syntax :

date()

Example

<!DOCTYPE html>
<html>
<body>
<script language="vbscript" type="text/vbscript">
 currentDate = date()
 document.write("Current Date is : " & currentDate)
</script>
</body>
</html>

Output :

After running above script in IE we will get following output -

Current Date is : 11/02/2025