Difference between revisions of "Custom Defined Holidays"
From SmartWiki
(→See Also) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
Instead of using the holidays that are built-in to [[SmartSimple]] you can custom define which dates should be considered holidays. | Instead of using the holidays that are built-in to [[SmartSimple]] you can custom define which dates should be considered holidays. | ||
Line 18: | Line 17: | ||
==See Also== | ==See Also== | ||
+ | * [[Holiday Calendar]] | ||
+ | * [[Manipulating Dates]] | ||
* [[Calculated Value - busdateadd Function|busdateadd()]] | * [[Calculated Value - busdateadd Function|busdateadd()]] | ||
* [[Subtract business days from a given date|isHoliday()]] | * [[Subtract business days from a given date|isHoliday()]] | ||
− | [[Category:JavaScript]][[Category:Variables]] | + | [[Category:JavaScript]][[Category:Variables]][[Category:Date Formats]] |
Latest revision as of 13:43, 29 August 2013
Instead of using the holidays that are built-in to SmartSimple you can custom define which dates should be considered holidays.
- When using the busdateadd() or isHoliday() functions.
The ssvar_holidays variable can be used to override the system defined holiday dates on that record being edited.
- The ssvar_holidays variable must be included in a Browser Script custom field on the same level as the busdateadd() or isHoliday() function.
Example
ssvar_holidays=",2011-01-01,2011-02-16,2011-04-10,2011-05-18,2011-07-01,2011-08-03, 2011-09-07,2011-10-12,2011-12-25,2011-12-26,2011-12-28,2012-01-01,2012-04-02,2012-05-24, 2012-07-01,2012-08-02,2012-09-06,2012-10-11,2012-12-27,2012-12-28,";