Dates A simple library for working with dates and ranges using the default timezone

Getting Started

Usage

Ranges

Day Helpers

Every DateTime instance has the following methods to check if is a particular day:

$date->isMonday();
$date->isTuesday();
$date->isWednesday();
$date->isThursday();
$date->isFriday();
$date->isSaturday();
$date->isSunday();

You can also check for weekends or weekdays:

$date->isWeekday();
$date->isWeekend();

And even if a date is a bank holiday:

$date->isBankHoliday();