Date.setMonth

月の値を設定

構文

dateObject.setMonth(month,day)

引数

month=月, day=日

例文

<html>
<head>
<title>Date.setMonth</title>
</head>

<body>

<!--月の値を設定のサンプル-->
<script type="text/javascript">
var dt=new Date();
dt.setMonth(3);
document.write(dt);
</script>

</body>
</html>

関連記事

スポンサーリンク

PHPでTwitterのツイートをする/ツイート一覧を取得する/検索する(API v1.1)

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る