PHPackages                             oprokidnev/partial-date - 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. oprokidnev/partial-date

ActiveLibrary

oprokidnev/partial-date
=======================

Partial date with compare support

03PHP

Since Sep 12Pushed 8y ago1 watchersCompare

[ Source](https://github.com/oprokidnev/partial-date)[ Packagist](https://packagist.org/packages/oprokidnev/partial-date)[ RSS](/packages/oprokidnev-partial-date/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Partialy defined dates
======================

[](#partialy-defined-dates)

Supported date formats
----------------------

[](#supported-date-formats)

Package supports dates, defined using the following formats:

- `H:i:s d.m.Y` (01:00:05 21.07.2017)
- `H:i d.m.Y` (01:00 21.07.2017)
- `H: d.m.Y` (01: 21.07.2017)
- `d.m.Y` (21.07.2017)
- `m.Y` (07.2017)
- `Y` (2017)
- `H:i:s` (01:00:05)
- `H:i` (01:00)
- `H:` (01:)

Comparison
----------

[](#comparison)

Partially defined dates can be compared one with another. Basic usage example is:

```
