I want to calculate the number of working days.
By using carbon I can calculate days and reduce weekends.
$num_days = $to_date->diffInWeekdays($from_date) + 1;
And I have an array of holidays, and I want to reduce the number of days if there is a holiday in between the days.
Is there any way to do this.
Thank you
Carbon
instances? If they're strings how are they formatted? – Stichous