danharrin/date-format-converter

Convert token-based date formats between standards.

Maintainers

👁 DanHarrin

Package info

github.com/danharrin/date-format-converter

pkg:composer/danharrin/date-format-converter

Fund package maintenance!

danharrin

Statistics

Installs: 28 124 168

Dependents: 5

Suggesters: 0

Stars: 32

Open Issues: 0

v0.3.1 2024-06-13 09:38 UTC

Requires

  • php: ^7.2|^8.0

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 7c31171bc981e48726729a5f3a05a2d2b63f0b1e

  • Dan Harrin <dan.woop@danharrin.com>

This package is auto-updated.

Last update: 2026-06-13 14:03:30 UTC


README

👁 Package banner

This package allows you to convert token-based date formats between standards.

Installation

You can use Composer to install this package into your application:

composer require danharrin/date-format-converter

Usage

Use the convert_date_format() method to initialise a new instance of the converter, ready to use:

convert_date_format('Y-m-d H:i:s')->to('day.js');
// YYYY-MM-DD HH:mm:ss

convert_date_format('Y-m-d H:i:s')->to('moment.js');
// YYYY-MM-DD HH:mm:ss

Need Help?

🐞 If you spot a bug with this package, please submit a detailed issue, and wait for assistance.

🤔 If you have a question or feature request, please start a new discussion.

🔐 If you discover a vulnerability within the package, please review our security policy.