![]() |
#2
从小到大2007-06-02 19:46
|
我的数据库中 users
username varchar
birth datetime
插入数据,birth文本框,有个验证控件,规定8位(yyyymmdd)
string str="insert into users(username,birth,....) values(";
str+="'" + username.text + "',";
str+="'" + Convert.todatetime(birth.text) + "'," //当我输入日期时,错误"该字符串未被识别为有效的datetime"
.....