Downloads
Stars
Version
A Laravel library that converts a given Oracle JD Edwards Julian date to the standard Gregorian date.
Date fields in JD Edwards are stored in the Julian format where the date format is CYYDDD
For more information on this format please visit this page
Require this package in your composer.json and update composer.
composer require starshums/jdejulianconverter
and then update composer :
composer update
After updating composer, add the ServiceProvider to the providers array in config/app.php
starshums\jdejulianconverter\JDEJulianConverterServiceProvider::class,
You also need to add the alias. Add this to your aliases:
'JJC' => starshums\jdejulianconverter\JDEJulianConverter::class,
$converter = new \JJC;
$date = $converter->Convert(110123); // expected result : 2010-05-03
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.