• 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

WAMP Virtual Host not working

PHP Slim Framework request using withAttribute error

Confirm Leave on External Links in Wordpress

How do I enable error reporting in Laravel?

dompdf and img tag, image wont show

(PHPUnit) PHP Fatal error: Uncaught Error: Call to undefined function each()

Laravel PHP: multiple project run at the same time [closed]

Is there a way to use the same parameter into multiple place in the same query with Eloquent? [duplicate]

Inserting data into SQL Server Db An Invalid direction was specified

Symfony Mercure "Failed to send an update"

Undefined variable in Laravel 8 project (php 7.4)

Laravel Factory not calling callback 'afterCreating'

Assets not referencing to public folder (Laravel)

Extract string between first whitespace and last whitespace in php

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

About Contact Privacy policy Terms and conditions