以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 2024-07-26T09:18 变成SQL的时间值 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=192844) |
-- 作者:2900819580 -- 发布时间:2024/7/26 11:34:00 -- 2024-07-26T09:18 变成SQL的时间值 e.PostValues("st") = "2024-07-26T09:18" e.PostValues("en") = "2024-07-26T09:18" Dim StTime As Date = # & e.PostValues("st").Replace("T", " ") & # Dim EnTime As Date = "\'" & e.PostValues("en").Replace("T", " ") & "\'" 以上方法都不行。
|
-- 作者:有点蓝 -- 发布时间:2024/7/26 11:46:00 -- Dim StTime As Date = cdate(e.PostValues("st").Replace("T", " ")) |