Changes

Jump to: navigation, search

Calculated Value - busdateadd Function

332 bytes added, 19:48, 13 May 2014
no edit summary
A new javascript function {{JavaScript Syntax}}The JavaScript "busdateadd" is available. function adds a specific number of '''business days''busdateadd'to a given date.*Syntax: '' busdateadd(start datedatefield,number of business daysto be added) It skips Saturday and Sunday and Canadian public holidays (not banking holidays). We will have '' datefield could be a Standard Field or a US version as well later. This is not related to any [[SmartSimpleCustom Field]] calendar.
'''Impact''': The client can then do a calculation in a [[Custom Fields|custom field]] based on business days instead of real daysIt skips Saturday and Sunday and Canadian public holidays (not banking holidays).
This is not related to any [[SmartSimple]] calendar.   '''Impact''': This allows a calculation in a [[Custom Fields|custom field]] based on business days instead of real days. '''Example''',
Lets say field frm.startdate.value = 07/11/2008,Friday
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