This documentation is archived and is not being maintained.

DateInterval Enumeration

Indicates how to determine and format date intervals when calling date-related functions.

Namespace: Microsoft.VisualBasic
Assembly: Microsoft.VisualBasic (in microsoft.visualbasic.dll)

public enum DateInterval
public enum DateInterval
public enum DateInterval

 Member nameDescription
Supported by the .NET Compact FrameworkDayDay of month (1 through 31) 
Supported by the .NET Compact FrameworkDayOfYearDay of year (1 through 366) 
Supported by the .NET Compact FrameworkHourHour (1 through 24) 
Supported by the .NET Compact FrameworkMinuteMinute (1 through 60) 
Supported by the .NET Compact FrameworkMonthMonth (1 through 12) 
Supported by the .NET Compact FrameworkQuarterQuarter of year (1 through 4) 
Supported by the .NET Compact FrameworkSecondSecond (1 through 60) 
Supported by the .NET Compact FrameworkWeekdayDay of week (1 through 7) 
Supported by the .NET Compact FrameworkWeekOfYearWeek of year (1 through 53) 
Supported by the .NET Compact FrameworkYearYear 

For more detailed information, see the Visual Basic topic DateInterval Enumeration.

When you call date-related functions, you can use enumeration members in your code in place of the actual values.

The DateInterval enumeration defines constants used with date-related functions to identify how date intervals are determined and formatted. The following table lists the DateInterval enumeration members.

Windows 98, Windows Server 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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0