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

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

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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 3.5, 2.0, 1.0