• 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

Laravel 5.2: Unable to locate factory with name [default]

Store multiple fields in JSON column (Nova CMS)

Adding reCAPTCHA v2 into my PHP file

Access denied for user 'homestead'@'localhost' (using password: YES)

How to create custom authentication in laravel 8?

Laravel Sanctum CSRF not authenticating

laravel controller function parameters

enroll_table three field fetch to payment form to create payment field in laravel 5.5

printing all running session variable in laravel 5.1

How to load Codeigniter 4 lang file into an array variable

How do I Post to .txt document before form submits

target [LaravelFortifyContractsRegisterViewResponse] is not instantiable

Laravel phpunit test failing authorization

mysql slow on updates for a well optimized query

Class AppHttpControllersUserController Does Not Exist

About Contact Privacy policy Terms and conditions