WeekdayName: Difference between revisions
Jump to navigation
Jump to search
Created page with "WEEKDAYNAME(''number''[, ''abbreviate''[, ''firstdayofweek'']]) '''Description''' WEEKDAYNAME returns a string representing the day of week. The required argument, ''number'..." |
No edit summary |
||
Line 3: | Line 3: | ||
'''Description''' | '''Description''' | ||
WEEKDAYNAME returns a string representing the day of week. The required argument, ''number'', is an integer ranging from 1 to 7 that represents the number of the day of the week. The optional argument, ''abbreviate'', is a boolean expression, if abbreviate is TRUE the value returned is the three-letter abbreviation of the weekday name, otherwise the full name is returned by default. The optional parameter ''firstdayofweek'' is Sunday, if not specified. | WEEKDAYNAME returns a string representing the day of week. The required argument, ''number'', is an integer ranging from 1 to 7 that represents the number of the day of the week. The optional argument, ''abbreviate'', is a boolean expression, if ''abbreviate'' is TRUE the value returned is the three-letter abbreviation of the weekday name, otherwise the full name is returned by default. The optional parameter ''firstdayofweek'' is Sunday, if not specified. | ||
'''Example''' | '''Example''' |
Revision as of 21:13, 8 July 2012
WEEKDAYNAME(number[, abbreviate[, firstdayofweek]])
Description
WEEKDAYNAME returns a string representing the day of week. The required argument, number, is an integer ranging from 1 to 7 that represents the number of the day of the week. The optional argument, abbreviate, is a boolean expression, if abbreviate is TRUE the value returned is the three-letter abbreviation of the weekday name, otherwise the full name is returned by default. The optional parameter firstdayofweek is Sunday, if not specified.
Example
REM WEEKDAYNAME Example 'WEEKDAYNAME returns string name of day DIM Day1, Day2 Day1 = 1 PRINT WEEKDAYNAME(Day1) Day2 = 2 PRINT WEEKDAYNAME(Day2, TRUE, vbMonday)
Output
Sunday Tue