共用方式為


FirstDayOfWeek Enumeration 

Indicates the first day of the week to use when calling date-related functions.

Remarks

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

Some date-related functions take a DayOfWeek argument, a WeekOfYear argument, or both. The FirstDayOfWeek enumeration specifies the valid values for the DayOfWeek arguments, as well as the possible return values from the functions.

The DayOfWeek argument takes the FirstDayOfWeek enumeration members.

Date-related functions also return FirstDayOfWeek values (except System).

Members

Member Constant Description

System

vbUseSystemDayOfWeek

The first day of the week as specified in your system settings

Sunday

vbSunday

Sunday (default)

Monday

vbMonday

Monday

Tuesday

vbTuesday

Tuesday

Wednesday

vbWednesday

Wednesday

Thursday

vbThursday

Thursday

Friday

vbFriday

Friday

Saturday

vbSaturday

Saturday

Requirements

Namespace: Microsoft.VisualBasic

Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)

See Also

Tasks

How to: Refer to an Enumeration Member

Reference

FirstWeekOfYear Enumeration
DateFormat Enumeration
DateDiff Function (Visual Basic)
DatePart Function (Visual Basic)
Format Function
Weekday Function (Visual Basic)

Concepts

Intrinsic Constants and Enumerations
When to Use an Enumeration