■日時を表す文字列に変換したい


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>日時を表す文字列に変換したい</title>
</head>
<body>
<p>■日時を表す文字列に変換したい</p>
<script type="text/JavaScript">
<!--
today = new Date();
document.write("<p>toLocaleString() = 「<b>"+today.toLocaleString()+"</b>」</p>");
document.write("<p>toString() = 「<b>"+today.toString()+"</b>」</p>");
document.write("<p>toUTCString() = 「<b>"+today.toUTCString()+"</b>」</p>");
document.write("<p>toGMTString() = 「<b>"+today.toGMTString()+"</b>」</p>");
document.write("<p>getTimezoneOffset() = 「<b>"+today.getTimezoneOffset()+"</b>」</p>");
// -->
</script>
</body>
</html>


★解説★