Skip to main content

and welcome to the Drupal Dev!

why would you try something like this,

create a variable array that contain all the Hollidays>

$currentyear=the current year; $holiday['01-01-'.$currentyear,other holiday,other holiday];

$result=$start_date->difference($end_date, 'days'); for(ctr=0;ctr=sizeof(holiday);ctr++;) { if(holiday[ctr]>=start_date && holiday[ctr]<=end_date) temp++;Hollidays

} $result -= temp;

$currentyear=the current year;
$holiday['01-01-'.$currentyear,other holiday,other holiday];

$result=$start_date->difference($end_date, 'days');
for(ctr=0;ctr=sizeof(holiday);ctr++;)
{
    if(holiday[ctr]>=start_date && holiday[ctr]<=end_date)
    temp++;

} 
$result -= temp;

and welcome to the Drupal Dev!

why would you try something like this,

create a variable array that contain all the Hollidays>

$currentyear=the current year; $holiday['01-01-'.$currentyear,other holiday,other holiday];

$result=$start_date->difference($end_date, 'days'); for(ctr=0;ctr=sizeof(holiday);ctr++;) { if(holiday[ctr]>=start_date && holiday[ctr]<=end_date) temp++;

} $result -= temp;

why would you try something like this,

create a variable array that contain all the Hollidays

$currentyear=the current year;
$holiday['01-01-'.$currentyear,other holiday,other holiday];

$result=$start_date->difference($end_date, 'days');
for(ctr=0;ctr=sizeof(holiday);ctr++;)
{
    if(holiday[ctr]>=start_date && holiday[ctr]<=end_date)
    temp++;

} 
$result -= temp;
Source Link

and welcome to the Drupal Dev!

why would you try something like this,

create a variable array that contain all the Hollidays>

$currentyear=the current year; $holiday['01-01-'.$currentyear,other holiday,other holiday];

$result=$start_date->difference($end_date, 'days'); for(ctr=0;ctr=sizeof(holiday);ctr++;) { if(holiday[ctr]>=start_date && holiday[ctr]<=end_date) temp++;

} $result -= temp;