IT. Expert System.

VBS

WeekdayName()


Description

The WeekdayName() function returns the weekday name of a specified day of the week.

This function has the form:

WeekdayName(weekday [,abbreviate [,firstdayofweek]])
Parameter Description
weekday (required) The number of the weekday
abbreviate (optional) A Boolean value that indicates if the weekday name is to be abbreviated
firstdayofweek (optional) Specifies the first day of the week.

This parameter 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 examples show the basic use of this function:

Example 1

Get the name of the 3rd day of the week:

Msgbox(WeekdayName(3))

This produces the following result:

Tuesday

Example 2

Get the short name of the 3rd day of the week:

Msgbox(WeekdayName(3,True))

This produces the following result:

Tue

Example 3

Get the name of the 3rd day of the week, where the first day is monday:

Msgbox(WeekdayName(3,False,2))

This produces the following result:

Wednesday

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: 215 / 158797903. Delta: 0.00307 с