[Date->FirstDayOfWeek] is an accessor for getting or setting the milliscondsinday field for a date object.
Getting uses no parameters and returns the FirstDayOfWeek value as an integer.
Setting requires an integer parameter, and supports the =, += and -= operators. Setting modifies the date object in-place, but does not return a value.
Date Object->firstdayofweek Date Object->firstdayofweek=Integer Date Object->firstdayofweek+=Integer Date Object->firstdayofweek-=Integer
Use the [Date->FirstDayOfWeek] method. The following example uses a single date object, then gets the firstdayofweek and returns its value.
Next we set the firstdayofweek field to a new value using the = operator, then set it again by adding 1 to the firstdayofweek using the += operator, and set it once more by subtracting 1 from the firstdayofweek using the -= operator. We return the result for each set operation.
local(d) = date('2011-02-21 08:00:00') #d->firstdayofweek + '<br>' #d->firstdayofweek=5 #d->firstdayofweek + '<br>' #d->firstdayofweek+=1 #d->firstdayofweek + '<br>' #d->firstdayofweek-=1 #d->firstdayofweek
1 5 6 5
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