• 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

Cache clear probem in Larave

Warning file_get_contents () failed to open stream: HTTP request failed! HTTP/1.0 402 Payment Required

wp_remote_get() not passing authentication

Sentry + Laravel: how to log an already catched Exception?

How do I call a php file with axios?

Laravel 5.1 Unknown database type enum requested

PhP how to calculate moments with variables rows

Artisan, creating tables in database

Handling expired token in Laravel

Laravel SQL query midnight time not showing

How do I remove this delivery notification from here?

Call to a member function fetch_field() on a non-object MySQLiDB

Laravel You requested 1 items, but there are only 0 items available

Laravel 5 issue with wherePivot

php file upload scanning using clamav, permissions on /tmp/

About Contact Privacy policy Terms and conditions