VB如何将时间转换为字符串? 1、 比如 18:20:42 转换为字符串 182042 2、 我要的数据是秒数 如何直接将18:20:42 转换为42 并得到秒的数据请教!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Private Sub Form_Load()Dim D As DateDim S1Dim S As StringD = "18:20:42"S = Replace(CStr(D), ":", "")MsgBox SS1 = Second(D)MsgBox S1End Sub Dim iDate as dateiDate=DateDebug.Print Format(iData,"mm") dim strA() as string dim strP as string dim I as integerstrA=split(time,":")strP=""for I=Lbound(strA) to Ubound(strA) strP=strP & strA(I)next I 水晶报表的查询 求一vb源程序 请教fpspread做表格编辑的问题 初来VB版,结交VB好友!顺便问个很菜的问题! 一个简单的数据类型转换问题 条码设备接口问题 一个小问题:DATAGRID数据源 无奈的多线程,看来我真要和VB说再见了 请问在VB中生成安装文件(即打包)如何操作? 求助,如何才能让VB弹出的一个窗口(上面有其他的控件)像QQ那样总在最前面?在线等待 BeginPath 和 EndPath BCD 转换10进制
Dim D As Date
Dim S1
Dim S As String
D = "18:20:42"
S = Replace(CStr(D), ":", "")
MsgBox S
S1 = Second(D)
MsgBox S1
End Sub
iDate=Date
Debug.Print Format(iData,"mm")
dim strP as string
dim I as integer
strA=split(time,":")
strP=""
for I=Lbound(strA) to Ubound(strA)
strP=strP & strA(I)
next I