Script Helper
Sample BenSelect® scripts with notes on how they work, where they go and what to change. Search by keyword or by tag — try or .
Billing date = first of the following month
Billing starts on the first of the month after the effective date (or the same day if effective on the 1st).
New hire effective date: 1st of month after 30 days
Sets effective and billing dates for new hires to the first of the month after a 30-day wait.
Coverage change: effective 1st of the following month
For CoverageChange events, coverage starts on the 1st of the month after the event (same day if the event is on the 1st).
Marriage: 1st of the following month
Marriage changes take effect on the 1st of the month after the marriage date.
Loss-of-dependent events: terminate at month end
For divorce, legal separation, or death of spouse, coverage terminates on the last day of the event month.
First of the month after a waiting period
Returns the 1st of the month following a 30-day wait from hire.
Date as MM/dd/yyyy
Formats a record date field in US format, blank when empty.
Date as yyyyMMdd (EDI style)
Formats a date as CCYYMMDD, the common EDI/834 date format.
Skip never-effective coverage
Drops rows where coverage ended on or before it started.
Dependent age
Calculates a child dependent's age as of the effective date.
Formatted hire date
Shows the employee's hire date as MM/dd/yyyy.
Enrollment deadline countdown
Shows days remaining and the end date while enrollment is open.