• 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 validate Envato Purchase Code in PHP

laravel controller function parameters

Display Link Title Instead of URL in XSL

Not able to access model in the controller mautic

AJAX call fails with SyntaxError: Unexpected end of JSON input

How to run a shell as root from php (apache)

php retrieve specific data onclick from database in a list format

TesseractOCR not working for Laravel

PHP: How to solve ob_start() in combination imagepng() issue?

Composer fails with kylekatarnls/update-helper on new homestead

Is there a way to use Foundry Model for Authentification inside Functional Tests?

How to convert time from one timezone to another in PHP

Split array into 4-element chunks then implode into strings

Sum column values from multiple arrays

WHM Enabling mod_rewrite

About Contact Privacy policy Terms and conditions