Foxtable(狐表)用户栏目专家坐堂 → [求助]临时表获得的时间总是不对


  共有1872人关注过本帖树形打印复制链接

主题:[求助]临时表获得的时间总是不对

帅哥哟,离线,有人找我吗?
有点甜
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/5/21 8:41:00 [显示全部帖子]

Dim dtb As New DataTableBuilder("test1")
dtb.AddDef("列1", Gettype(String), 32)
dtb.AddDef("列2", Gettype(Date))
dtb.AddDef("列3", Gettype(String), 17)
dtb.Build()
DataTables("test1").DataCols("列2").SetDateTimeFormat(DateTimeFormatEnum.DatelongTime)
MainTable= Tables("test1")
Tables("test1").AddNew()
Tables("test1").Current ("列2") = Date.Now
Tables("test1").Current ("列1")  = Format(Tables("test1").Current ("列2"),"yyyyMMddhhMMss") 
Tables("test1").Current ("列3") = "1" & Tables("test1").Current ("列1")

 回到顶部