Tryit Editor v1.8

Source Code:
<!DOCTYPE html> <html> <body> <script type="text/vbscript"> document.write(Weekday("2010-02-16",0) & "<br>") document.write(Weekday("2010-02-16",1) & "<br>") document.write(Weekday("2010-02-16",2) & "<br>") document.write(Weekday("2010-02-16",3) & "<br>") document.write(Weekday("2010-02-16",4) & "<br>") document.write(Weekday("2010-02-16",5) & "<br>") document.write(Weekday("2010-02-16",6) & "<br>") </script> </body> </html>
Result:
W3Schools.com - Try it yourself