I am developing a web application that revolves around dates.
I need to calculate numbers based on days, e.g. pseudo-code
$count_only = array('monday', 'wednesday', 'friday');
$start_date = 1298572294;
$finish_date = 1314210695;
$var = number_of_days_between($start_date, $finish_date, $count_only);
Is there a way to determine how many days have passed, but only counting certain days?
source
share