• 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

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

PHP only Hit Counter?

PHP, how to convert Int value to Week days

How avoid Moved Permanently The document has moved here

Laravel PackageManifest.php: Undefined index: name

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255

Facebook SDK error: Cross-site request forgery validation failed. Required param "state" missing from persistent data

If action is on a different page do I use fwrite function

Laravel Sanctum CSRF not authenticating

How to Create WooCommerce Subscription Product via. REST API?

How do I call Validator from a namespace with an already existing Validator class

Laravel Delete and Update

Trying to mock an http client that is inside a controller, using phpunit, but it doesn't work

How do I refresh a DIV content?

How to give apache permission to write to home directory?

About Contact Privacy policy Terms and conditions