「日付」(2006/05/19 (金) 20:40:00) の最新版変更点
追加された行は緑色になります。
削除された行は赤色になります。
<h4><a id="anc_datousei" name=
"anc_datousei">日付の妥当性チェック</a></h4>
<table cellspacing="0" cellpadding="2" width="99%" align="center" bgcolor=
"#F5F5F5" border="1">
<tbody>
<tr>
<td>
<pre>
Calendar cal = Calendar.getInstance();// 厳密なチェックを行うように設定 cal.setLenient( false );// チェックしたい日付を設定(ここでは2002年1月33日を指定)cal.set(2002, 0, 33);try { // 設定した日付が存在しない
<br>
<table class="mainTableCss" id="mainTable" cellspacing="2" cellpadding="3"
width="100%">
<tbody>
<tr>
<td class="mainTableMCss" id="mainTableM">
<h4><a name="anc_datousei" id=
"anc_datousei">日付の妥当性チェック</a></h4>
<table cellspacing="0" cellpadding="2" width="99%" align="center" bgcolor=
"#F5F5F5" border="1">
<tbody>
<tr>
<td>
<pre>
Calendar cal = Calendar.getInstance();
<font color="#009900">// 厳密なチェックを行うように設定 </font>
cal.setLenient( false );
<font color=
"#009900">// チェックしたい日付を設定(ここでは2002年1月33日を指定)</font>
cal.set(2002, 0, 33);
try {
<font color="#009900">// 設定した日付が存在しない
表示オプション
横に並べて表示:
変化行の前後のみ表示: