### Install Date Format Converter Source: https://github.com/danharrin/date-format-converter/blob/main/README.md Install the date-format-converter package using Composer. This command adds the package as a dependency to your PHP project. ```bash composer require danharrin/date-format-converter ``` -------------------------------- ### Convert Date Format to day.js Source: https://github.com/danharrin/date-format-converter/blob/main/README.md Convert a date string to the day.js format using the `convert_date_format()` method. This example shows how to initialize the converter and specify the target format. ```php convert_date_format('Y-m-d H:i:s')->to('day.js'); // YYYY-MM-DD HH:mm:ss ``` -------------------------------- ### Convert Date Format to moment.js Source: https://github.com/danharrin/date-format-converter/blob/main/README.md Convert a date string to the moment.js format using the `convert_date_format()` method. This demonstrates initializing the converter and setting the desired output format. ```php convert_date_format('Y-m-d H:i:s')->to('moment.js'); // YYYY-MM-DD HH:mm:ss ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.