:のjQuery-UI DatePickerのは、PHP + MySQLの問題
<input type="text" name="date" value="<?php echo $date; ?>" class="textbox" />
は、私は、データベースから取得し、私の値を見ることができます。形式は次のとおりです。1965年2月5日
私はこのコードを設定した場合:テキスト入力エリアに示す
<script>
$(function() {
$("#datepicker").datepicker({
changeMonth: true,
changeYear: true
}
);
$("#datepicker").datepicker("option", "dateFormat", "yy-mm-dd");
$("#datepicker").datepicker("option", "yearRange", '1900:2011');
});
</script>
<input type="text" id="datepicker" name="date" value="<?php echo $date; ?>" class="textbox" />
は何を、私はテキスト入力領域の内側をクリックしたときに、私は何の問題もなく日付ピッカーを見ることができます。
何が問題ですか?そのように書式設定 I'am:
http://docs.jquery.com/UI/Datepicker/formatDate
yyyy-mm-dd one yは2桁の数字を表します。 –