⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 日期时间间隔比较.txt

📁 用于车辆监控数据的分析
💻 TXT
字号:
Dim a As Date
Dim b As Date
Dim c As Integer
a=Format("2004-9-1 22:00:02","yyyy-mm-dd hh:nn:ss")
b=Format("2004-9-1 22:25:00","yyyy-mm-dd hh:nn:ss")
c=CInt(DateDiff("n",a,b))
If c>CInt(Text1.Text) Then
    MsgBox "差值大于文本框中的值"
ElseIf c=CInt(Text1.Text) Then
    MsgBox "差值等于文本框中的值"
Else
    MsgBox "差值小于文本框中的值"
End If

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -