• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Laravel Carbon throws error The format separator does not match

phplaraveldatedatetimelaravel-5


PHP Snippet 1:

date("D d M", strtotime("2017-02-09 18:30:00"));
//outputs "Thu 09 Feb"

date("D d M", strtotime($matchArr['matchTime']);

PHP Snippet 2:

date('l j F', strtotime($matchArr['matchTime']))

PHP Snippet 3:

Carbon::createFromFormat('Y-m-d H:i:s', '2017-02-09 18:30:00');

Related Snippets

Image upload not working through ajax Laravel

Declaration of OMDb::query(string $statement) must be compatible with PDO::query

How to get multiple values with same key from an array PHP

How to use React Router with Laravel?

api response laravel doesn't show

How to generate QR CODE for dynamic generating link and logo using Simple QrCode in laravel?

Xdebug can't connect back to Docker host

How to unlink image from folder?

Laravel UUID generation

Show Custom Data in Woocommerce Order Details Admin Area

Laravel 8 factory state afterCreating

TesseractOCR not working for Laravel

Laravel with App Engine Standard Class 'FacadeIgnitionIgnitionServiceProvider' not found

how to pass row id in href of a tag in codeigniter controller?

Insert multidimensional array to codeigniter cart

About Contact Privacy policy Terms and conditions