VBS TUTORIAL: function-weekdayname function _vbs

Source: Internet
Author: User

WeekdayName function

Returns a String that represents the day specified in the week.

WeekdayName(weekday, abbreviate, firstdayofweek)

Parameters

Weekday

Required option. A numeric definition of the day of the week. The numeric definitions for each day depend on the firstdayofweek parameter setting.

Abbreviate

Options available. Boolean value that indicates whether the name of the day of the week is abbreviated. If omitted, the default value is False, that is, the name of the day of the week is not abbreviated.

FirstDayOfWeek

Options available. Specify the number of the first day of the week. For numeric values, see the "Settings" section.

Set up

The FirstDayOfWeek parameter has the following values:

Constants value Description
Vbusesystem 0 Use the regional language Support (NLS) API settings.
Vbsunday 1 Sunday (default)
Vbmonday 2 Monday
Vbtuesday 3 Tuesday
Vbwednesday 4 Wednesday
Vbthursday 5 Thursday
Vbfriday 6 Friday
Vbsaturday 7 Saturday

Description

The following example uses the weekdayname function to return a specified day:

  Dim mydatemydate =   WeekdayName ( 6, True )  ' mydate    contains  Fri . 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.