DateInterval Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates how to determine and format date intervals when calling date-related functions.
public enum class DateInterval
public enum DateInterval
type DateInterval =
Public Enum DateInterval
- Inheritance
Fields
Day | 4 | Day of month (1 through 31) |
DayOfYear | 3 | Day of year (1 through 366) |
Hour | 7 | Hour (0 through 23) |
Minute | 8 | Minute (0 through 59) |
Month | 2 | Month (1 through 12) |
Quarter | 1 | Quarter of year (1 through 4) |
Second | 9 | Second (0 through 59) |
Weekday | 6 | Day of week (1 through 7) |
WeekOfYear | 5 | Week of year (1 through 53) |
Year | 0 | Year. |
Remarks
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.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om