• 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

Webscraping Symfony/Panther: Can't get HTML

best way to store error messages in Laravel (session or variable)

Laravel Sanctum CSRF not authenticating

wordpress function breaks wp-admin

PHP: Calling MySQL Stored Procedure with Both INPUT AND OUTPUT Parameters (NOT "INOUT")

How to convert a carbon into string, to take the date only?

Send POST data via raw JSON with Postman

Unable to run composer install

Respond with status code 401 on authentication failure using Laravel and Passport?

How to give apache permission to write to home directory?

How to KeyBy where multiple items have the same key

how to check version of codeigniter framework?

PHP contact form configuration [duplicate]

Unable to Edit config.inc.php

Merge column values from two arrays to form an indexed array of associative arrays

About Contact Privacy policy Terms and conditions