VBScript Return a number of characters from a string

Return a number of characters from a string

<html>
<body>

<script type="text/vbscript">
text="Have a nice day!"
document.write(Mid(text, 2, 2))

// 1st number is the start position
// 2nd is for the letters amount

</script>

</body>
</html>