在我的 程序中我用了 这个空间
DTPicker
代码:
DTPicker_start.Value=now
time_start = DTPicker_start.Value
time_end = DTPicker_end.Value
sql = "update t_tl_tlunicom set isvisible = 0 ,ENDDATE = to_date('" + time_end + "','yyyy-mm-dd') where isvisible = 1"
sql2 = "insert into t_tl_tlunicom values (t_tl_tlunicom_tlid.nextval,to_date('" + time_start + "','yyyy-mm-dd'),to_date('" + time_start + "','yyyy-mm-dd'),empty_blob(),'1')"
但是这个 time_start 的值是带 时 分 秒 的
我应该怎么 修改我的代码啊
'yyyy-mm-dd hh:mm:ss'
这么写提示我错误了 。。(提示内容忘记了 。。麻烦大家了)
DTPicker
代码:
DTPicker_start.Value=now
time_start = DTPicker_start.Value
time_end = DTPicker_end.Value
sql = "update t_tl_tlunicom set isvisible = 0 ,ENDDATE = to_date('" + time_end + "','yyyy-mm-dd') where isvisible = 1"
sql2 = "insert into t_tl_tlunicom values (t_tl_tlunicom_tlid.nextval,to_date('" + time_start + "','yyyy-mm-dd'),to_date('" + time_start + "','yyyy-mm-dd'),empty_blob(),'1')"
但是这个 time_start 的值是带 时 分 秒 的
我应该怎么 修改我的代码啊
'yyyy-mm-dd hh:mm:ss'
这么写提示我错误了 。。(提示内容忘记了 。。麻烦大家了)
------------------------------
2005-1-1 13:14:20
to_date('" + strEnd + "', 'yyyy-mm-dd')
特别是chd2001(天蝎降临) 的解释我的问题解决了