Changes

Jump to: navigation, search

Calculated Value - busdateadd Function

257 bytes added, 19:48, 13 May 2014
no edit summary
{{JavaScript Syntax}}
The JavaScript "busdateadd" function adds a specific number of '''business days''' to a given date.
*Syntax: ''busdateadd(start datedatefield,business days to be added)'' datefield could be a Standard Field or a [[Custom Field]]
It skips Saturday and Sunday and Canadian public holidays (not banking holidays).
 
*(A US version will be available at a late date).
This is not related to any [[SmartSimple]] calendar.
busdateadd(frm.startdate.value,1) returns 10/11/2008, Monday
frm.startdate is a standard field. To calculate using [[Category:System ManagementCustom Field]] use frm.cf_fieldid.value. ==See Also==* [[Manipulating Dates]]* [[isHoliday]]* [[Custom Defined Holidays]]* [[Adding a given number of days to a date based on the value of a dropdown]] [[Category:EnhancementsJavaScript]][[Category:Custom FieldsDate Formats]]
8,849
edits

Navigation menu