itadventure/datetime

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

Installs: 46

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 1

Open Issues: 0

pkg:composer/itadventure/datetime

1.1 2018-01-07 11:00 UTC

This package is not auto-updated.

Last update: 2025-09-24 12:58:39 UTC


README

Installation

You can install from laravel 5.1 > .To install the package

$ composer require itadventure/datetime

If you need to use by alias just put this line into config/app.php

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

Helper functions

The available helper functions are given belows:

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