DateInterval 列舉型別
指出在呼叫日期相關的函式時,判斷和格式化日期間隔的方式。
命名空間: Microsoft.VisualBasic
組件: Microsoft.VisualBasic (在 microsoft.visualbasic.dll 中)
語法
'宣告
Public Enumeration DateInterval
'用途
Dim instance As DateInterval
public enum DateInterval
public enum class DateInterval
public enum DateInterval
public enum DateInterval
成員
成員名稱 | 說明 | |
---|---|---|
![]() |
Day | 月中的日 (1 到 31) |
![]() |
DayOfYear | 年中的日 (1 到 366) |
![]() |
Hour | 小時 (1 到 24) |
![]() |
Minute | 分鐘 (1 到 60) |
![]() |
Month | 月份 (1 到 12) |
![]() |
Quarter | 季 (1 到 4) |
![]() |
Second | 秒鐘 (1 到 60) |
![]() |
Weekday | 星期資訊 (1 到 7) |
![]() |
WeekOfYear | 年中的週 (1 到 53) |
![]() |
Year | 年 |
備註
如需詳細資訊,請參閱 Visual Basic 的主題 DateInterval 列舉型別。
在呼叫日期相關的函式時,您可以在程式碼中使用列舉型別成員來取代實際值。
DateInterval 列舉型別定義與日期相關函式共用的常數,以辨識要如何判斷並格式化日期間隔。下列資料表列出 DateInterval 列舉型別成員。
平台
Windows 98、 Windows 2000 SP4、 Windows CE、 Windows Millennium Edition、 Windows Mobile for Pocket PC、 Windows Mobile for Smartphone、 Windows Server 2003、 Windows XP Media Center Edition、 Windows XP Professional x64 Edition、 Windows XP SP2、 Windows XP Starter Edition
.NET Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱系統需求一節的內容。
版本資訊
.NET Framework
支援版本:2.0、1.1、1.0
.NET Compact Framework
支援版本:2.0、1.0
請參閱
參考
其他資源
DateInterval 列舉型別
內建常數和列舉型別
DateFormat 列舉型別
DueDate 列舉型別
DatePart 函式 (Visual Basic)
DateAdd 函式 (Visual Basic)
DateDiff 函式 (Visual Basic)
何時使用列舉型別
HOW TO:參考列舉型別成員