DayOfWeek: Difference between revisions
From MultiCharts
(→Usage) |
m (Reverted edits by 176.8.90.7 (talk) to last revision by 194.84.116.138) |
||
Line 3: | Line 3: | ||
The Date is specified in the YYYMMdd format, where YYY is the number of years since 1900, MM is the month, and dd is the day of the month. | The Date is specified in the YYYMMdd format, where YYY is the number of years since 1900, MM is the month, and dd is the day of the month. | ||
==== Usage ==== | |||
<syntaxhighlight>DayOfWeek(YYYMMdd)</syntaxhighlight> | |||
Where: [[YYYMMdd]] - a numerical expression, specifying the date in YYYMMdd format | |||
==== Example ==== | ==== Example ==== | ||
<syntaxhighlight>DayOfWeek(1080101) will return a value of 2, indicating Tuesday, for January 1st, 2008 | <syntaxhighlight>DayOfWeek(1080101) will return a value of 2, indicating Tuesday, for January 1st, 2008 |
Revision as of 13:07, 13 February 2012
Returns a numerical value, indicating the day of the week corresponding to the specified date, where 0 = Sunday, 1 = Monday, etc.
The Date is specified in the YYYMMdd format, where YYY is the number of years since 1900, MM is the month, and dd is the day of the month.
Usage
DayOfWeek(YYYMMdd)
Where: YYYMMdd - a numerical expression, specifying the date in YYYMMdd format
Example
DayOfWeek(1080101) will return a value of 2, indicating Tuesday, for January 1st, 2008
DayOfWeek(990603) will return a value of 4, indicating Thursday, for June 3rd, 1999