Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns a string containing the localized name of the weekday.
Syntax
HRESULT VarWeekdayName(
[in] int iWeekday,
[in] int fAbbrev,
[in] int iFirstDay,
[in] ULONG dwFlags,
[out] BSTR *pbstrOut
);
Parameters
[in] iWeekday
The day of the week.
| Value | Meaning |
|---|---|
|
The system default |
|
Monday |
|
Tuesday |
|
Wednesday |
|
Thursday |
|
Friday |
|
Saturday |
|
Sunday |
[in] fAbbrev
If zero then the full (non-abbreviated) weekday name is used. If non-zero, then the abbreviation for the weekday name is used.
[in] iFirstDay
First day of the week.
| Value | Meaning |
|---|---|
|
The system default |
|
Monday |
|
Tuesday |
|
Wednesday |
|
Thursday |
|
Friday |
|
Saturday |
|
Sunday |
[in] dwFlags
VAR_CALENDAR_HIJRI is the only flag that can be set.
[out] pbstrOut
Receives the formatted string that represents the variant.
Return value
This function can return one of these values.
| Return code | Description |
|---|---|
|
Success. |
|
Out of memory. |
|
One or more of the arguments is not valid. |
Requirements
| Requirement | Value |
|---|---|
| Target Platform | Windows |
| Header | oleauto.h |
| Library | OleAut32.lib |
| DLL | OleAut32.dll |