• 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

How to test laravel controller method?

How to Display Data in Yajra Datatables Laravel 7?

How can I get new CSRF token in LARAVEL by using ajax

Installing Composer - Internal Error

Reading input in php from terminal

Is it possible to re-use an array taken from PHP via JSON in a $.ajax function?

MySQL upgrade causing unexpected results on simple WHERE clauses

Override default Auth routes in Laravel 7

"Mixed content blocked" when running an HTTP AJAX operation in an HTTPS page

WordPress + Nginx on non-standard port behind AWS ELB results in broken links

How to pass data to all views in Laravel 5?

Laravel no logout option from menu after successfull login

Laravel whole batch is cancelled if one Job fails

ldap is missing from system when installing adldap2 in laravel

Display Link Title Instead of URL in XSL

About Contact Privacy policy Terms and conditions