• 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

yii2 and mssql insert varbinary into model

Star and Half Star Rating in Laravel

html-php form submission after validation through JavaScript [closed]

Yii Ajax Submit button

Transfer data between JavaScript and PHP through JSON

Testing subscription renewals on Stripe

Symfony Mercure "Failed to send an update"

How to insert data from multiple select dropdown values into database?

Symfony/Form add attribute based on the data

Correctly determine if date string is a valid date in that format

IlluminateDatabaseQueryException could not find driver [duplicate]

How to get result of the formula on import xlsx with maatwebsite using Laravel? I get formula and not value of the formula

Having issue with matching rows in the database using PDO

Unable to guess the mime type as no guessers are available Laravel 5.2

Detect if PHP session exists

About Contact Privacy policy Terms and conditions