Tuesday, August 17, 2010

Visual Basic String Function : WeekdayName

Purpose : WeekdayName returns the name of the day of the week based on the number passed.

Syntax :
WeekdayName ( weekday , [ abbreviate] , [ firstdayofweek ] )

weekday : Numeric value for the day of the week
abbreviate : Boolean value that indicates whether the weekday name should be abbreviated.
firstdayofweek : Numeric value indicating the first day of the week.
vbUseSystem = Uses National Language support (NLS) API
vbSunday
vbMonday
vbTuesday
vbWednesday
vbThursday
vbFriday
vbSaturday

retStr = WeekdayName (3 )

The WeekdayName function returns the day of the week of the passed numeric argument . The value returned in the sample syntax is "Tuesday".

No comments:

Post a Comment