2017 © Pedro Peláez
 

library datetime

A date time helper for laravel, Convert string date and other more

image

itadventure/datetime

A date time helper for laravel, Convert string date and other more

  • Tuesday, January 9, 2018
  • by itadventure
  • Repository
  • 0 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 12 % Grown

The README.md

Installation

You can install from laravel 5.1 > .To install the package, (*1)

$ composer require itadventure/datetime

If you need to use by alias just put this line into config/app.php, (*2)

'DT'      => Itadventure\Datetime\DateTime::class,

Helper functions

The available helper functions are given belows:, (*3)

Function Details
DT::dateWith12hTime($date) 01-01-2018 01:00:00 PM
DT::onlyDMY($date) 01-01-2018

Example

$date = '2018-01-01 13:00';
echo DT::dateWith12hTime($date); //Output: 01-01-2018 01:00:00 PM
echo DT::onlyMY($date); //Output: January 2018

Todos

  • Write MORE Functions

License

MIT, (*4)

The Versions

09/01 2018

dev-master

9999999-dev https://github.com/itadventure/datetime

A date time helper for laravel, Convert string date and other more

  Sources   Download

MIT

The Requires

  • php >=5.4

 

07/01 2018

1.1

1.1.0.0 https://github.com/itadventure/datetime

A date time helper for laravel, Convert string date and other more

  Sources   Download

MIT

The Requires

  • php >=5.4

 

07/01 2018

1.0

1.0.0.0 https://github.com/itadventure/datetime

A date time helper for laravel, Convert string date and other more

  Sources   Download

MIT

The Requires

  • php >=5.4