• 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 send parameters in soap request in php in __soapcall() function

cakephp save drag and drop list order to database

Sync Records With Default Values in Pivot Tables, Call to undefined method syncWithPivotDefaults()

Cannot retrieve error message using Symfony HttpClient if the response is not "ok"

How to convert binary string to normal string in php

Magento Installation SQLSTATE[HY000] [2002] No such file or directory error

Laravel - How to properly generate unique slugs from article titles?

Fetch files from next cloud storage and display in Laravel website

Laravel Factory not calling callback 'afterCreating'

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

PHP AWS Cognito 'Error executing "SignUp" : ResourceNotFoundException : User pool client XXXX does not exist

Unable to Edit config.inc.php

How to get total pages of PDF with FPDF?

Laravel views are showing from cache on one server but works fine on other server

WAMP/Wordpress - cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

About Contact Privacy policy Terms and conditions