私は次のJavaScriptを持っています:
today = new Date(); //real "today" value if not using sample database
var curr_date = today.getDate();
var curr_month = today.getMonth();
curr_month++;
var curr_year = today.getFullYear().substr(2,2);
var t = curr_date + "/" + curr_month + "/" + curr_year;
this.queryText = this.queryText + " where exdate between '" + t + "' and '" + t + "'";
これを行うと、クエリはすべてを返しますが、実際には、今日と今日の間に1つのレコードしかありません。
「「8/9/12」と「8/9/12」の間」を手動で記述した場合、クエリは正常です。ここで何が問題になっていますか?
ありがとう