LassoScript Utility
Basics Browse Detail


Tag Link [Date->DayofWeek] Category Date
Type Member Source Available No
Support Preferred Version 6.0
Change Unchanged Data Source Any
Output Type String, Integer Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0


[Date->DayofWeek] returns the number of the day of the week (1=Sunday, 7=Saturday) for a specified Lasso date cast using the [Date] tag.

An optional -Short parameter returns an abbreviated English day name (e.g. "Sun") and an optional -Long parameter returns the full English day name (e.g. "Sunday").


[(Date)->(DayofWeek: -Short)]
[(Date)->(DayofWeek: -Long)]


Optional Parameters
-Short Returns an abbreviated English day name.
-Long Returns a full English day name.


To return the day of week number for a date:

The example below determines the day of week number for the date 8/29/2002, which is 5 for Thursday.