[Date_GetDayOfWeek] returns the day of the week from a date. If no parameter is specified then the current day of the week is returned, otherwise the day of the week is extracted from the specified date.
The result is a number from 1 to 7 where 1 represents Sunday and 7 represents Saturday. An optional -DateShortName keyword instead returns the abbreviated English day name, e.g. "Sun", and an optional -DateLongName keyword returns the full English day name, e.g. "Sunday".
The date parameter should be in standard Lasso date format.
[Date_GetDayOfWeek: Base Date]
[Date_GetDayOfWeek: Base Date, -DateShortName]
[Date_GetDayOfWeek: Base Date, -DateLongName]
Use the [Date_GetDayOfWeek] tag. The following example uses the optional -DateLongName keyword to output the full English name for the current day of the week.
<p>The current day of the week is [Date_GetDayOfWeek: -DateLongName, (Date_GetCurrentDate)].
<p>The current day of the week is Thursday.
Tag Link | [Date_GetDayOfWeek] | Category | Date |
---|---|---|---|
Type | Substitution | Data Source | Any |
Support | Deprecated | Version | 3.0 |
Output Type | String or Integer | Security | None |
Implementation | LCAPI | Sets | Lasso 5.0,LDML3x |
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft