以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 请教如何格式化时分秒? (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=85701) |
-- 作者:李睿涵 -- 发布时间:2016/6/1 11:30:00 -- 请教如何格式化时分秒? 想把当前时间的时分秒格式化成数字 比如 13:12:11 格式化成 131211 该用哪个格式化符号? |
-- 作者:大红袍 -- 发布时间:2016/6/1 11:34:00 -- Dim d As Date = "13:12:11" msgbox(format(d, "HHmmss"))
Dim str As String = "13:12:11" msgbox(str.replace(":", "")) |