Lasso Soft Inc. > Home

[Date->DayofWeek]

[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").

  • Syntax
  • Parameters
[(Date)->DayofWeek]
[(Date)->(DayofWeek: -Short)]
[(Date)->(DayofWeek: -Long)]
Optional Parameters
-Short Returns an abbreviated English day name.
-Long Returns a full English day name.
Examples

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.

[(Date:'8/29/2002')->DayofWeek]
Result:
5
Tag Link [Date->DayofWeek] Category Date
Type Member Data Source Any
Support Preferred Version 6.0
Output Type String, Integer Security None
Implementation LCAPI Sets Lasso 7.0, Lasso 6.0

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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft