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
DayDay of month (1 through 31)
DayOfYearDay of year (1 through 366)
HourHour (0 through 23)
MinuteMinute (0 through 59)
MonthMonth (1 through 12)
QuarterQuarter of year (1 through 4)
SecondSecond (0 through 59)
WeekdayDay of week (1 through 7)
WeekOfYearWeek of year (1 through 53)

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. For an example, see the DatePart method.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft