Advertisement: RazorSQL
Query, update, navigate, and manage all databases from one database
client with ease using RazorSQL, a database query tool, SQL Editor,
database navigator, and administraton tool.
Download a free trial today!
Advertisement: EditRocket
The text editor for programmers with coding tools and support for over 20 languages. Download a free trial today!
<html>
<head>
<script>
function day(num)
{
switch(num)
{
case 0:
return 'Sunday';
case 1:
return 'Monday';
case 2:
return 'Tuesday';
case 3:
return 'Wednesday';
case 4:
return 'Thursday';
case 5:
return 'Friday';
case 6:
return 'Saturday';
}
}
function month(num)
{
switch(num)
{
case 0:
return 'January';
case 1:
return 'February';
case 2:
return 'March';
case 3:
return 'April';
case 4:
return 'May';
case 5:
return 'June';
case 6:
return 'July';
case 7:
return 'August';
case 8:
return 'September';
case 9:
return 'October';
case 10:
return 'November';
case 11:
return 'December';
}
}
</script>
</head>
<body>
<script>
var date = new Date();
document.write ( (date.getMonth()+1) + "/" + date.getDate() + "/" + date.getFullYear());
document.write ("<br>");
document.write ( day(date.getDay()) + ", " + month(date.getMonth()) + " " +date.getDate() + ", " +date.getFullYear());
</script>
</body>
</html>