• 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

Attempted to call an undefined method named "get" of class "MailController"

Testing subscription renewals on Stripe

How to disable widget block editor of WordPress?

500 (Internal Server Error) with Laravel & Docker [duplicate]

PHP Startup Unable to load dynamic library /usr/lib/php/20151012/php_mysqli.dll

Laravel 5 session not persisting after user is logged in

Laravel Sanctum CSRF not authenticating

Issue saving card for customer

XDebug not working in VScode for php debugging

How to access a var with "-" in PHP [duplicate]

(Cache::lock()) -> get() -- Under what conditions does it return false?

How to display table header in every page using FPDF library?

PHPUnit 7: Failed asserting that exception of type InvalidArgumentException is thrown

Smarty: undefined extension class 'Smarty_Internal_Method_Get_Template_Vars'

Laravel You requested 1 items, but there are only 0 items available

About Contact Privacy policy Terms and conditions