<!DOCTYPE html>
<html>
<body>
<p>VBScripts' function <b>MonthName</b> is used to get a month:</p>
<script type="text/vbscript">
document.write("<p>")
document.write(MonthName(1))
document.write("<br />")
document.write(MonthName(2))
document.write("</p><p>")
document.write("Here is how you get the abbreviated name of a month:")
document.write("<br />")
document.write(MonthName(1,True))
document.write("<br />")
document.write(MonthName(2,True))
document.write("</p><p>")
document.write("Here is how you get the current month:")
document.write("<br />")
document.write(MonthName(Month(Date)))
document.write("<br />")
document.write(MonthName(Month(Date),True))
document.write("</p>")
</script>
</body>
</html>
No comments:
Post a Comment