PHPackages                             axetools/dateutil - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. axetools/dateutil

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

axetools/dateutil
=================

A PHP library of date time related tools

v2.0.1(1y ago)03[2 PRs](https://github.com/AxeTools/DateUtil/pulls)MITPHPPHP ^7.1 || ^8.0

Since Sep 13Pushed 1y agoCompare

[ Source](https://github.com/AxeTools/DateUtil)[ Packagist](https://packagist.org/packages/axetools/dateutil)[ RSS](/packages/axetools-dateutil/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (9)Used By (0)

AxeTools/DateUtil
=================

[](#axetoolsdateutil)

 **This is a php class trait that will provide methods for performing simple bitwise operations.**

 [![Source Code](https://camo.githubusercontent.com/b8910e6282b6829444760197c7efb435c0e9575d3d4f8680d1d870d5194e12c1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d417865546f6f6c732f446174655574696c2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/AxeTools/DateUtil) [![PHP Programming Language](https://camo.githubusercontent.com/a85d6c45689b380156baeac1d6dea15edfb6dd1c9a1073a5ca420cc012526bc6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f417865546f6f6c732f446174655574696c2e7376673f7374796c653d666c61742d73717561726526636f6c6f72423d253233383839324246)](https://php.net) [![Read License]()](https://github.com/AxeTools/DateUtil/blob/1.x/LICENSE) [![Build Status](https://camo.githubusercontent.com/6badea521e2e173eec5895f4be51e54662d838eac33a84a5568445f7af41e7a0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f417865546f6f6c732f446174655574696c2f7068702e796d6c3f6272616e63683d312e78266c6f676f3d676974687562267374796c653d666c61742d737175617265)](https://github.com/AxeTools/DateUtil/actions/workflows/php.yml)

This project uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

The `DateUtil` gives simple methods for creating relative dates, absolute dates and utilities for creating holidays and determining if the current day is a holiday or not.

Some Examples.

```
