danharrin/date-format-converter

Convert token-based date formats between standards.

Fund package maintenance!
danharrin

Installs: 4 007 878

Dependents: 5

Suggesters: 0

Security: 0

Stars: 26

Watchers: 2

Forks: 2

Open Issues: 0

v0.3.0 2022-09-29 07:48 UTC

This package is auto-updated.

Last update: 2024-03-29 04:45:39 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.