IT. Expert System.

VBS

WeekDay()


Description

The Weekday function returns a number between 1 and 7, that represents the day of the week.

This function has the form:

Weekday(date [,firstdayofweek])
Parameter Description
date (required) The date expression to evaluate
firstdayofweek (optional) Specifies the first day of the week.

Can take the following values:

  • 0 = vbUseSystemDay
    OfWeek - Use National Language Support (NLS) API setting
  • 1 = vbSunday - Sunday (default)
  • 2 = vbMonday - Monday
  • 3 = vbTuesday - Tuesday
  • 4 = vbWednesday - Wednesday
  • 5 = vbThursday - Thursday
  • 6 = vbFriday - Friday
  • 7 = vbSaturday - Saturday

Examples

The following example shows the basic use of this function:

Msgbox(WeekDay("2010-02-16",1))
Msgbox(WeekDay("2010-02-16",2))
Msgbox(WeekDay("2010-02-16",3))
Msgbox(WeekDay("2010-02-16",4))
Msgbox(WeekDay("2010-02-16",5))
Msgbox(WeekDay("2010-02-16",6))

This produces the following result (each line in a separate pop-up message box):

3
2
1
7
6
5

Miscellaneous Information

Supported in Version: 1.0


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 235 / 158797923. Delta: 0.00310 с