Bagikan melalui


Date and Time Constants

 

Since these constants are built into VBScript, you don't have to define them before using them. Use them anywhere in your code to represent the values shown for each.

Constant

Value

Description

vbSunday

1

Sunday

vbMonday

2

Monday

vbTuesday

3

Tuesday

vbWednesday

4

Wednesday

vbThursday

5

Thursday

vbFriday

6

Friday

vbSaturday

7

Saturday

vbUseSystemDayOfWeek

0

Use the day of the week specified in your system settings for the first day of the week.

vbFirstJan1

1

Use the week in which January 1 occurs (default).

vbFirstFourDays

2

Use the first week that has at least four days in the new year.

vbFirstFullWeek

3

Use the first full week of the year.

Requirements

Version 2

See Also

Color Constants
Comparison Constants
Date Format Constants
Miscellaneous Constants
MsgBox Constants
String Constants
Tristate Constants
VarType Constants