VBScript Day function

VBScript Day

VBScript Day() function returns a number between 1 and 31. Returned integer value represents the day of the specified date.

Syntax

Day(date) 

Example :

<!DOCTYPE html>
<html>
<body>
<script language="vbscript" type="text/vbscript">
document.write(Day("2025-01-11"))
</script>
</body>
</html>

Output :

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

11